[tex-live] ttf2afm generate AFM file with incorrect value for ItalicAngle

Vladimir Lomov lomov.vl at gmail.com
Mon Sep 28 08:04:45 CEST 2009


Hi.

$ tlmgr --version
tlmgr revision 15310 (2009-09-15 22:33:22 +0200)
tlmgr using installation: /usr/local/opt/texlive
TeX Live (http://tug.org/texlive) version 2009-dev

$ ttf2afm --version
ttf2afm version 1.02
Copyright (C) 1997-2005 Han The Thanh.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfTeX source.
Primary author of ttf2afm: Han The Thanh.

$ ttf2afm -o DejaVuSerif-Italic.afm /usr/share/fonts/TTF/DejaVuSerif-Italic.ttf
$ grep "ItalicAngle" DejaVuSerif-Italic.afm
ItalicAngle 65525
$ fontforge -c 'Open($1); Print("ItalicAngle: ", $italicangle);'
/usr/share/fonts/TTF/DejaVuSerif-Italic.ttf 2>/dev/null
ItalicAngle: -11

Correct value of ItalicAngle gives fontforge:
$ fontforge -c 'Open($1); Generate($2);'
/usr/share/fonts/TTF/DejaVuSerif-Italic.ttf DejaVuSerif-Italic_.afm
$ grep "ItalicAngle" DejaVuSerif-Italic_.afm
ItalicAngle -11

AFM files generated by ttf2afm and fontforge have different Encoding:
$ grep "Encoding" DejaVuSerif-Italic.afm DejaVuSerif-Italic_.afm
DejaVuSerif-Italic.afm:EncodingScheme FontSpecific
DejaVuSerif-Italic_.afm:EncodingScheme ISO10646-1

AFAIK, ttf2afm is used to generate AFM file and then TFM in order to
use TTF font with pdftex.

---
WBR, Vladimir Lomov


More information about the tex-live mailing list