Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.2, 2.0.3, 3.0.0 PDFBox
-
None
Description
Fonts rendered in wrong size. The cause is related to wrong values in the /WIDTHS table and this code in PageDrawer:
// stretch non-embedded glyph if it does not match the width contained in the PDF if (!font.isEmbedded()) { float fontWidth = font.getWidthFromFont(code); if (fontWidth > 0 && // ignore spaces Math.abs(fontWidth - displacement.getX() * 1000) > 0.0001) { float pdfWidth = displacement.getX() * 1000; at.scale(pdfWidth / fontWidth, 1); } }
I suspect that there must be another condition to skip the stretching, but I didn't find out which one.
Attachments
Attachments
Issue Links
- is duplicated by
-
PDFBOX-4130 When W entries not included in CIDFont get width from font by code, Improve display of some PDF files.
- Closed
- is related to
-
PDFBOX-4130 When W entries not included in CIDFont get width from font by code, Improve display of some PDF files.
- Closed
- links to