Tilman Hausherr created PDFBOX-2044:
---------------------------------------

             Summary: TrueType glyphs not displayed in rendering
                 Key: PDFBOX-2044
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2044
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr


In the file of PDFBOX-2041 the text isn't displayed in the 2.0 version.

This is related to the truetype 'loca' table:
https://developer.apple.com/fonts/TTRefMan/RM06/Chap6loca.html

In the table of that file, the endOfGlyphs variable, which is the last offset 
value ("extra" in the spec), is 0. Therefore, GlyphTable.initData() doesn't 
read any glyphs because it believes that the end has already been reached, 
because the first offset is (of course) 0 and is identical to the endOfGlyphs 
variable.

I will fix this by disregarding endOfGlyphs == offset if endOfGlyphs is 0, and 
not asking for offset equality to skip glyphs, instead I require that the next 
offset is bigger.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to