DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40724>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40724 Summary: Kerning does not work for user-specified CID fonts Product: Fop Version: 1.0dev Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: fonts AssignedTo: fop-dev@xmlgraphics.apache.org ReportedBy: [EMAIL PROTECTED] Testing this in revision 462741, I have created a font file with only two glyphs A and V, and set kerning between them. The XML metrics file (excerpt below) shows that the indexes in <kerning> are glyph indexes, but AFAICS the layout code expects unicode indexes. I'll change that in the TTFFile font decoder class, to have unicode indexes in the <kerning> section. <multibyte-extras> <cid-type>CIDFontType2</cid-type> <default-width>0</default-width> <bfranges> <!-- mapping of glyph indexes to unicode --> <bf gi="0" ue="0" us="0"/> <bf gi="3" ue="65" us="65"/> <bf gi="4" ue="86" us="86"/> <bf gi="0" ue="65535" us="65535"/> </bfranges> <cid-widths start-index="0"> <wx w="684"/> <wx w="1000"/> <wx w="1000"/> <wx w="684"/> <wx w="684"/> </cid-widths> </multibyte-extras> <!-- glyph index 3 is A in my font, 4 is V --> <kerning kpx1="3"> <pair kern="-279" kpx2="4"/> </kerning> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.