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

Tilman Hausherr resolved PDFBOX-2044.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Fixed in rev 1589893 for the trunk.

> 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
>             Fix For: 2.0.0
>
>
> In the file of PDFBOX-2041 the text isn't displayed in the 2.0 version. It 
> works in the 1.8 version which uses awt.
> The cause 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