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

Uwe Möser commented on PDFBOX-3780:
-----------------------------------

Thank you. The getXHeight() and getCapHeight() methods seem to work now. But 
the getAscent() method works different for PDType0Font and PDType1Font. Could 
you please check.



> Heights of Characters
> ---------------------
>
>                 Key: PDFBOX-3780
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3780
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.5
>            Reporter: Uwe Möser
>            Priority: Critical
>         Attachments: DejaVuSansCondensed-Bold.ttf, DejaVuSansCondensed.ttf, 
> PDFBoxHeightTest.java, PDFBoxHeightTest.pdf
>
>
> the functions 
> .getFontDescriptor().getCapHeight()
> .getFontDescriptor().getXHeight()
> .getFontDescriptor().getAscent()
> .getFontDescriptor().getDescent()
> getHeight(int code)
> do not work proper especially for embedded fonts, PDType0Font .
> Please see the attached  file PDFBoxHeightTest.pdf where the line is and 
> should be. The fonts were downloaded from 
> http://www.schriftarten-fonts.de/fonts/11283/dejavu_sans_condensed.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to