[ 
https://issues.apache.org/jira/browse/PDFBOX-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488231#comment-15488231
 ] 

Tilman Hausherr commented on PDFBOX-3495:
-----------------------------------------

Here's the javadoc:
{code}
     * This will get the font size in pt. To get this size we have to multiply 
the font size from
     * {@link #getFontSize() getFontSize()} with the text matrix (set by the 
"Tm" operator)
     * horizontal scaling factor and truncate the result to integer. The actual 
rendering may appear
     * bigger or smaller depending on the current transformation matrix (set by 
the "cm" operator).
     * To get the size in rendering, use {@link #getXScale() getXScale()}.
{code}
So it isn't perfect, it has the Tm value multiplied by the Tf value, but does 
not have the cm value.

> fontSize calculation wrong
> --------------------------
>
>                 Key: PDFBOX-3495
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3495
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.2
>            Reporter: Arthur Freitas e Menezes
>         Attachments: de_judITRF.pdf
>
>
> In showGlyph method of PDFTextStreamEngine class, line 306. fontSizeInPt 
> would not be " fontSize * ctm.getScalingFactorX ()" ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to