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

John Hewson resolved PDFBOX-2303.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

With that change the TTF parsing time drops from 9sec to almost zero.

> Lazy loading of glyphs in TrueType fonts
> ----------------------------------------
>
>                 Key: PDFBOX-2303
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2303
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> FontBox's TTF GlyphTable reads the entire glyph table and constructs an 
> object for each glyph. However this is very slow for large external fonts 
> (e.g. Asian) such as "STXihei" which is 15.7MB and has 37255 glyphs. On my 
> machine it takes around 9 seconds for PDFBox to load that font just to render 
> 15 glyphs from it.
> We can modify GlyphTable to make it lazy so that glyphs are read individually 
> only when needed.



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

Reply via email to