[
https://issues.apache.org/jira/browse/PDFBOX-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385048#comment-16385048
]
Tilman Hausherr commented on PDFBOX-3457:
-----------------------------------------
PDFBOX-4130-1-reduced.pdf:
- Type0
- MSMincho
- /W missing
- /DW missing
- Font missing
- Actual font: MS-Mincho, type0
PDFBOX-4130-2-reduced.pdf:
- Type0
- MSMincho
- /W missing
- /DW present
- Font missing
- Actual font: MS-Mincho, type0
bug864847.pdf:
- TrueType
- Arial-ItalicMT
- /Widths present, but only 1 element
- /MissingWidth: 750
- Font missing
- Actual font: ???
gs-bugzilla693663-p9.pdf:
- Type0
- KSpecial1
- /W present (character missing)
- /DW missing
- Font missing
- Actual font: ArialUnicodeMS, type2 (why?)
PDFBOX-122:
- Type0
- Name ???
- /W present (character missing, codes 8220, 8221, 8226)
- /DW present
- Font missing
- Actual font: ArialUnicodeMS, type2
PDFBOX-2950.pdf:
- Type0
- Name ??? (unclear which one)
- /W ???
- /DW ???
- Font missing
- Actual font: ArialUnicodeMS, type2
PDFBOX-3937-7CSTFGJFWQDXKXNURT3VV3MSVSKTZG47-p4:
- F6 / F8
- Type0
- Name: ABCDEE+Arial and ABCDEE+Arial,Bold
- /DW present
- /W null
- Font missing
- Actual font: LiberationSans, type2
PDFBOX-3964-p1-reduced:
- Type0
- Name: ABCDEE+Calibri
- /DW present
- /W null
- Font present
- Actual font: Calibri, type2
PDFJS-5550-p1:
- TrueType
- Name: TimesNewRoman
- /Widths present and full
- /MissingWidth: 2568
- Font missing
PDFJS-7523: same
> Glyphs rendered in wrong width
> ------------------------------
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.2, 2.0.3, 3.0.0 PDFBox
> Reporter: Tilman Hausherr
> Priority: Major
> Attachments: PDFBOX-2642-HACK.pdf, PDFBOX_3457.patch,
> PDFBOX_3457_v2.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, bug864847.pdf,
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf,
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the
> /WIDTHS table and this code in PageDrawer:
> {code}
> // 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);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I
> didn't find out which one.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]