[ https://issues.apache.org/jira/browse/PDFBOX-5384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900838#comment-17900838 ]
Tilman Hausherr edited comment on PDFBOX-5384 at 11/25/24 12:46 PM: -------------------------------------------------------------------- Same problem here: [^PDFJS-15719_reduced.pdf] [^PDFJS-15719.pdf] The change happened in [ https://svn.apache.org/r1841866 ], which is likely the same as mentioned above. After looking at https://github.com/mozilla/pdf.js/issues/15719 and unsuccessfully working on it, the only thing that worked was to return null in {{loadUnicodeCmap()}} by adding this "too easy" solution before the log warning {code:java} if (getName() != null && getName().startsWith("Tahoma")) { return null; } {code} Running my regression tests brought me back to this issue. The PDF.js people use a predefined table for Tahoma and Verdana, very weird. was (Author: tilman): Same problem here: [^PDFJS-15719_reduced.pdf] [^PDFJS-15719.pdf] The change happened in r1841866, which is likely the same as mentioned above. After looking at https://github.com/mozilla/pdf.js/issues/15719 and unsuccessfully working on it, the only thing that worked was to return null in {{loadUnicodeCmap()}} by adding this "too easy" solution before the log warning {code:java} if (getName() != null && getName().startsWith("Tahoma")) { return null; } {code} Running my regression tests brought me back to this issue. The PDF.js people use a predefined table for Tahoma and Verdana, very weird. > Wrong glyphs used > ----------------- > > Key: PDFBOX-5384 > URL: https://issues.apache.org/jira/browse/PDFBOX-5384 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.25 > Reporter: Oliver Schmidtmer > Priority: Major > Labels: regression > Attachments: DOR-EC E-N20_118345.pdf, PDFJS-15719.pdf, > PDFJS-15719_reduced.pdf, image-2022-03-02-23-41-15-844.png > > > The attached PDF uses Tahoma fonts. > It seems the correct font is used, but it uses the wrong glyphs. > For example the "6" from the screenshot is definitely from Tahoma Glyph 25 / > CID 54, where it should be "S" Glyph 54 / CID 83. > The "=" in screenshot is Glyph 32 CID 61 where "Z" Glyph 61 CID 90 should be > used. > !image-2022-03-02-23-41-15-844.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org