Tilman Hausherr created PDFBOX-5924:
---------------------------------------

             Summary: Icons of text annotations sometimes too large
                 Key: PDFBOX-5924
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5924
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 3.0.3 PDFBox, 2.0.32
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0


When using DejaVu Sans as substitute for Zapf Dingbats, the annotation icons on 
page 6 are too large. The reason is that this font has a different scaling. 
Some debug output for the star icon:

Zapf Dingbats:
path: java.awt.geom.Rectangle2D$Float[x=35.0,y=-14.0,w=747.0,h=719.0], matrix: 
[0.001, 0, 0, 0.001, 0, 0]
DejaVu Sans:
path: java.awt.geom.Rectangle2D$Float[x=133.0,y=-9.0,w=1570.0,h=1490.0], 
matrix: [4.8828125E-4, 0, 0, 4.8828125E-4, 0, 0]

So we have to scale fonts that aren't 1/1000.



--
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

Reply via email to