Posted on 2006-04-06 20:39:58-07 by rhornsby
OpenType Fonts?

Anyone had trouble using OpenType fonts with PDF::Reuse? I'm running into a really bizzare issue that I'm not sure is a bug where the reuse_Component tool spits out the correct list of fonts, but the glyphs are not in order for OpenType fonts. ie, Myriad-Bold starts with DEFG... and ends with ...ABC.

I didn't think it was a big deal, until I realized that I went to use the font and prText was treating it as though A is D, B is E, etc. So a string like "Adams County" is rendered as "Dgdpv#Frxqw|" because of the shift.

I looked at the list again (myFile.pdf), and the TTF fonts are correct, but the OTF are goofed. Some begin with "DEF" and others with "CDE". I can obviously hack it to force a simple chr(n) replacement in my perl, but that is not ideal.

Direct Responses: 2113 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.