[
https://issues.apache.org/jira/browse/PDFBOX-3780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000474#comment-16000474
]
Uwe Möser commented on PDFBOX-3780:
-----------------------------------
For the standard fonts (PDType1Font) the getAscent() method delivers a value
like the capital letter height. For the embedded fonts (PDType0Font) it
delivers a value as I would you say it's correct. You can see it the pdf-file.
> 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]