[ 
https://issues.apache.org/jira/browse/FOP-850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Bowditch resolved FOP-850.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

Thanks Rob. Lets mark this as resolved then
                
> TTF Reader fails
> ----------------
>
>                 Key: FOP-850
>                 URL: https://issues.apache.org/jira/browse/FOP-850
>             Project: Fop
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.20.5
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Peter Schäfer
>             Fix For: 1.0
>
>         Attachments: BERLIN.TTF
>
>
> Reading fonts/BERLIN.TTF...
> Number of glyphs in font: 119
> Unicode cmap table not present
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
>         at java.util.ArrayList.get(ArrayList.java:324)
>         at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449)
>         at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439)
>         at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222)
>         at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)
> I found that the TrueType file contains a "cmap" table with platformID=3 and
> encodingId=0 (Windows Symbol encoding, or whatever).
> TTFReader expects encodingId = 1. However, the table contains readable data in
> the correct format (format 4). After patching TTFFile.java, it created a
> perfectly valid metrics file.
> I might suggest that you apply this patch to org.apache.fop.fonts.TTFFile, 
> line 185:
>    if (cmap_pid == 3 && (cmap_eid == 1 || cmap_eid == 0))

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to