[
https://issues.apache.org/jira/browse/PDFBOX-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944548#comment-17944548
]
Tilman Hausherr commented on PDFBOX-5987:
-----------------------------------------
new debug output:
type2Sequence: [618, 1979, 7, DIV|, HMOVETO|, -57, 35, DIV|, 0, -41, 36, DIV|,
22, 27, DIV|, -13, 20, DIV|, 96, 59, DIV|, RRCURVETO|, -8125, 32, DIV|, 27019,
40, DIV|, RLINETO|, -49, 43, DIV|, 83, 30, DIV|, 42, 43, DIV|, 65, 47, DIV|,
235, 76, DIV|, 0, RRCURVETO|, 1626, 37, DIV|, HLINETO|, 55, 26, DIV|, 0, 65,
47, DIV|, -40, 41, DIV|, 13, 20, DIV|, -41, 21, DIV|, RRCURVETO|, 5501, 43,
DIV|, -6475, 19, DIV|, RLINETO|, 2207, 40, DIV|, -6835, 46, DIV|, 5809, 166,
DIV|, -97, 548, 37, DIV|, -1453, 32, DIV|, RRCURVETO|, 42, 43, DIV|, HLINETO|,
201, 19, DIV|, 6829, 197, DIV|, 1187, 34, DIV|, 97, 2903, 49, DIV|, 9719, 61,
DIV|, RRCURVETO|, 2948, 23, DIV|, 341, RLINETO|, 28, 43, DIV|, 34, 19, DIV|,
56, 43, DIV|, 17, 19, DIV|, 41, 21, DIV|, 0, RRCURVETO|, 1375, 32, DIV|,
HLINETO|, 126, 43, DIV|, 0, 40, 41, DIV|, -56, 43, DIV|, -40, 41, DIV|, -125,
48, DIV|, RRCURVETO|, -8387, 33, DIV|, -21623, 32, DIV|, RLINETO|, -28, 43,
DIV|, -96, 59, DIV|, -18, 17, DIV|, -22, 27, DIV|, -41, 28, DIV|, 0,
RRCURVETO|, ENDCHAR|]
type1Sequence: [0, 618.0, HSBW|, 282.7143, HMOVETO|, -1.6285714, 0, -1.1388888,
0.8148148, -0.65, 1.6271186, RRCURVETO|, -253.90625, 675.475, RLINETO|,
-1.1395348, 2.7666667, 0.9767442, 1.3829787, 3.0921052, 0, RRCURVETO|,
43.945946, HLINETO|, 2.1153846, 0, 1.3829787, -0.9756098, 0.65, -1.9523809,
RRCURVETO|, 127.93023, -340.78946, RLINETO|, 55.175, -148.58696, 34.993977,
-97, 14.810811, -45.40625, RRCURVETO|, 0.9767442, HLINETO|, 10.578947,
34.664974, 34.911766, 97, 59.2449, 159.32787, RRCURVETO|, 128.17392, 341,
RLINETO|, 0.6511628, 1.7894737, 1.3023256, 0.8947368, 1.9523809, 0, RRCURVETO|,
42.96875, HLINETO|, 2.9302325, 0, 0.9756098, -1.3023256, -0.9756098,
-2.6041667, RRCURVETO|, -254.15152, -675.71875, RLINETO|, -0.6511628,
-1.6271186, -1.0588236, -0.8148148, -1.4642857, 0, RRCURVETO|, CLOSEPATH|,
ENDCHAR|]
> Can't render some Type1 fonts.
> ------------------------------
>
> Key: PDFBOX-5987
> URL: https://issues.apache.org/jira/browse/PDFBOX-5987
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox, Rendering
> Affects Versions: 3.0.4 PDFBox
> Reporter: Daniel Persson
> Priority: Minor
> Attachments: PDFBOX-5987.cff, PDFBOX-5987_reduced.pdf,
> font-issue.pdf, screenshot-1.png
>
>
> This PDF seems to have a font rendering issue in PDFBox.
>
> I've used both Poppler and Chrome to view the PDF, and it renders correctly.
> Stepping through the code on the first character, I see that we have a
> rendering list with commands that end in
> -40 41 DIV -41 21 DIV CLOSEPATH ENDCHAR
>
> This is not correct if you look at the byte sequence that ends in
> 12 98 -89 12 12 -117 8 14
>
> Could be interpreted as
> -127 -41 28 -127 -127 0 RRCURVETO ENDCHAR
>
> So perhaps there is an off-by-one error somewhere or something?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]