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=35727>. 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=35727 Summary: Exception in ttf2svg when converting large TTF file Product: Batik Version: 1.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P1 Component: Utilities AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When converting a large TTF file (Arial Unicode MS) for example, the ttf2svg will fail. In the source code I found that some fields in the TTF are considered as signed short integers instead of unsigned short integers as specified in the TTF specifications. To fix the problem : In GlyfCompositeComp.java: 'private short glyphIndex;' could be replaced by 'private int glyphIndex;' in 2 places in GlyfTable.java in the init() method: 'int len = loca.getOffset((short)(i + 1)) - loca.getOffset(i);' could be replaced by 'int len = loca.getOffset((i + 1)) - loca.getOffset(i);' in HheaTable.java : 'private short numberOfHMetrics;' could be replaced by 'private int numberOfHMetrics;' in the HheaTable constructor: 'numberOfHMetrics = raf.readShort();' could be replaced by 'numberOfHMetrics = raf.readShort() & 0x0000FFFF;' the method signature 'public short getNumberOfHMetrics()' could be replaced by 'public int getNumberOfHMetrics()' -- 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
