296 |
aurelien |
1 |
To embed TrueType and OpenType font files, you need to extract the
|
|
|
2 |
font metrics from the font files and build the required tables using
|
|
|
3 |
the utility TTF2UFM.
|
|
|
4 |
|
|
|
5 |
TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter
|
|
|
6 |
(http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net>
|
|
|
7 |
(http://www.acko.net/blog/ufpdf). That version has been further
|
|
|
8 |
modified by Ulrich Telle for use with the wxWidgets component
|
|
|
9 |
wxPdfDocument.
|
|
|
10 |
|
|
|
11 |
Following changes where made:
|
|
|
12 |
|
|
|
13 |
1) Generated AFM files contain the glyph number for each character.
|
|
|
14 |
2) Generated UFM files contain the bounding box for each character.
|
|
|
15 |
3) OpenType support has been activated for the Windows binary,
|
|
|
16 |
and the generated AFM/UFM files contain the associated
|
|
|
17 |
original Unicode codes for each character.
|