You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alfred (Jira)" <ji...@apache.org> on 2020/07/06 18:02:00 UTC

[jira] [Issue Comment Deleted] (PDFBOX-4909) Don't calculate font height for every glyph

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

Alfred updated PDFBOX-4909:
---------------------------
    Comment: was deleted

(was: Patch: [^PDFBOX-4909.patch]

Review: https://diffy.org/diff/mk64zriadnnee8x5mjk29y66r)

> Don't calculate font height for every glyph
> -------------------------------------------
>
>                 Key: PDFBOX-4909
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4909
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Text extraction
>    Affects Versions: 2.0.0, 3.0.0 PDFBox
>            Reporter: Alfred
>            Priority: Major
>         Attachments: PDFBOX-4909.patch
>
>
> LegacyPDFStreamEngine computes font height for every glyph and the computation is rather heavy, to work around all known problems.
> Instead of computing for every glyph, we can recompute only when the font changes. The SetFontAndSize operator will be invoked when the font changes so we can use that to compute and store the height to have it ready when needed in showGlyph.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org