Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 614
    • Issues 614
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poppler
  • poppler
  • Issues
  • #903

Closed
Open
Opened Apr 09, 2020 by Ferdinand Oeinck@fobrs

pdftoppm and subsetted OpenType True type font won't display correctly

I use Adobe afdko (https://github.com/adobe-type-tools/afdko) to subset an OTF font and embed it into a pdf file. Adobe Reader and MuPDF display the resulting PDF correct. Poppler has problems.

When this pdf file is rendered with pdftoppm, the text with this font is not shown.

I resolved this problem by changing lines 224-228 from SplashFTFont.cc to

if (ff->codeToGID && c < ff->codeToGIDLen && c >= 0) {
    gid = (FT_UInt)ff->codeToGID[c];
  } else {
    //gid = (FT_UInt)c;
    gid = FT_Get_Char_Index(ff->face, c); 
}

Apparently poppler cannot handle subsetted fonts here very well, because it will use gid's which are too large for subsetted fonts.

Please could someone put these changes into the repo?

thanks and regards/..

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: poppler/poppler#903