[
https://issues.apache.org/jira/browse/PDFBOX-3780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000485#comment-16000485
]
Tilman Hausherr commented on PDFBOX-3780:
-----------------------------------------
It's the opposite:
{quote}
The maximum height above the baseline reached by glyphs in this font. The
height of glyphs for accented characters shall be excluded.
{quote}
So the value for the type1 font are correct, and the one for the embedded type0
fonts are slightly incorrect. "Ä" should not be considered. I thought about
getting all heights in the code and excluding accents, but I don't how. See
glyphlist.txt in the source code, there are many things that can be considered
accents and I'm not sure about them.
The best for you would be not to trust these values and do your own
calculations, similar to what is done in DrawPrintTextLocations.
> 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]