Re: TTFReader bug
Jessica P. Hekman <jphekman <at> arborius.net>
2002-09-02 15:58:14 GMT
On 2 Sep 2002, Keiron Liddle wrote:
> I have committed what I think is the fix (to HEAD) and also added some
> logging.
> If you could checkout the code and give it a go it would be great.
Done. TTFReader now generates the XML file with no errors for two fonts
which previously gave it trouble!
However, when I tried actually using the generated XML file for one of
those fonts, the font didn't show up in the PDF output. (The characters in
that font just weren't there.) I took at look at two XML files:
a) I took a "broken" font, ran it through FontTools (mentioned in this
thread earlier), and then ran the old version of TTFReader on that. This
is XML file a. This XML file works (the resulting PDF looks as I expect).
b) XML file b is the new version of TTFReader run on the original, broken
font. This XML file does not work (the characters in the embedded font in
the PDF are invisible.)
The beginning of file (a):
<font-metrics
type="TRUETYPE"><font-name>Conga,Normal</font-name><embed/><cap-height>704</cap-height><x-height>589</x-height><ascender>927</ascender><descender>-300</descender><bbox><left>-228</left><bottom>-211</bottom><right>1219</right><top>927</top></bbox><flags>33</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char
idx="0" wdt="500"/><char idx="1" wdt="500"/> ...
The beginning of file (b):
(Continue reading)