Plans about supporting TrueType/Type42 fonts in dvips 

Date:  Thurs, Sep 1 2005 4:10 pm
Groups: linux.debian.bugs.dist, linux.debian.maint.tetex
> The problem is that I need to be able to mimic ttf2tfm's way of
> assigning character codes.  It messes them up, and I don't fully
> understand its algorithm due to its use of features present in
> freetype1 but not freetype2.  For example, do the following:
> % cp /xp/WINDOWS/Fonts/comic.ttf .
> % ttf2tfm comic.ttf -P 1 -E 0
> % echo 'comic comic.ttf Pid=1 Eid=0' > ttfonts.map
> % ttf2pk comic 300
> % tex testfont
> This is TeX, Version 3.141592 (Web2C 7.5.4)
> (/usr/local/texmf/tex/plain/base/testfont.tex
> Name of the font to test = comic
> Now type a test command (\help for help):)
> *\table\bye
> [1]
> Output written on testfont.dvi (1 page, 11184 bytes).
> Transcript written on testfont.log.
> % xdvi testfont
> Notice that 'A' (ascii '101) appears instead in position '041.
> And so on.

that's because your example is such - you did not ask to re-encode to some useful encoding. use the following instead:

cp .../comic.ttf .
cp .../cork.enc .
ttf2tfm comic.ttf -p cork.enc # some glyphs will not be found which is OK
echo 'comic   comic.ttf Encoding=cork.enc' > ttfonts.map
ttf2pk comic 300
 ...

Vladimir Volovich <v…@vsu.ru>