Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4909

Don't calculate font height for every glyph

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      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.

       

        Attachments

        1. PDFBOX-4909.patch
          7 kB
          Alfred
        2. Untitled.png
          37 kB
          Alfred
        3. WithCapturingSetFontAndSize.png
          36 kB
          Alfred

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              Faltiska Alfred

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment