ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "John R. Culleton" <john@wexfordpress.com>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Installing Truetype fonts in context.
Date: Mon, 6 Jun 2005 10:08:41 +0000	[thread overview]
Message-ID: <200506061008.42052.john@wexfordpress.com> (raw)
In-Reply-To: <200506051146.32448.john@wexfordpress.com>

Thanks to all who assisted earlier in the thread.

Let me start with a clean sheet of paper. My environment is
Slackware Linux, which puts TeX in /usr/share/. However I have
updated the ttf2afm program by copying the newer version from
TeXLive as previously discussed.  Here are my two font install
scripts. The first is for a pfb file not accompanied by an afm
file. The second is for a ttf file. They both seem to work for
me, given my environment. Both require that the font be put in a
subdirectory by itself to start with. Both require that the font
be assigned an unique name. Both require that updmap.cfg be
modified initially to include a file called plus.map.

 Both are called with

 <command> vendorname fontname.

  Comments/criticisms appreciated. Are they candidates for the
contextgarden WIKI?
-----------------makefonts-----------------------------------

pf2afm *pfb
mkdir /usr/share/texmf-local/fonts/source/$1
mkdir /usr/share/texmf-local/fonts/source/$1/$2
cp * /usr/share/texmf-local/fonts/source/$1/$2/
texfont --en=8r --ve=$1 --co=$2 --ma --in
cd /usr/share/texmf-local/fonts/map/pdftex/context/
cat *map >plus.map
mv plus.map /usr/share/texmf/fonts/map/pdftex/updmap
updmap
texhash
-------------------------------------------------------------
--------------------makettls--------------------------------

ttf2afm *ttf
mkdir /usr/share/texmf-local/fonts/source/$1
mkdir /usr/share/texmf-local/fonts/source/$1/$2
cp * /usr/share/texmf-local/fonts/source/$1/$2/
texfont --en=8r --ve=$1 --co=$2 --ma --in
cd /usr/share/texmf-local/fonts/map/pdftex/context/
sed {s/pfb/ttf/} *$2*
cat *map >plus.map
mv plus.map /usr/share/texmf/fonts/map/pdftex/updmap
updmap
texhash
------------------------------------------




-- 

John Culleton

      reply	other threads:[~2005-06-06 10:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-04 14:21 John R. Culleton
2005-06-04 19:28 ` Thomas A. Schmitz
2005-06-04 21:34 ` Hans Hagen
2005-06-05 11:46   ` John R. Culleton
2005-06-06 10:08     ` John R. Culleton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506061008.42052.john@wexfordpress.com \
    --to=john@wexfordpress.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).