Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve text-selection for Type3 fonts with empty /FontBBox-entries (issue 6605) #13461

Merged
merged 2 commits into from
Jun 6, 2021

Commits on Jun 5, 2021

  1. Improve text-selection for Type3 fonts with empty /FontBBox-entries (…

    …issue 6605)
    
    For Type3 fonts where the /CharProcs-streams of the individual glyph starts with a `d1` operator, we can use that to build a fallback bounding box for the font and thus improve text-selection in some cases.
    Snuffleupagus committed Jun 5, 2021
    Configuration menu
    Copy the full SHA
    20770cb View commit details
    Browse the repository at this point in the history
  2. Ensure that we fully load Type3 fonts in `PartialEvaluator.getTextCon…

    …tent`
    
    This is necessary now, since with the previous patch the /FontBBox potentially depends on the contents of the /CharProcs-streams.
    Note that if `getOperatorList` is called *before* `getTextContent`, this patch doesn't matter since the font is already fully loaded/parsed. However, for e.g. the `text` test-cases this is necessary to ensure correct reference images.
    Snuffleupagus committed Jun 5, 2021
    Configuration menu
    Copy the full SHA
    eefc94c View commit details
    Browse the repository at this point in the history