You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/03/23 10:40:00 UTC

[jira] [Commented] (PDFBOX-4494) Problem with google noto bold font and hungarian characters

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

Tilman Hausherr commented on PDFBOX-4494:
-----------------------------------------

That will be tricky. This is some problem with composite TrueType glyphs. I looked at it with DTL OTMaster 3.7 light.

Your Hungarian "ö" glyph is 274 which a composite glyph and made of glyph 82 and 338. In the components, the reference to the first one has the USE_MY_METRICS flag which we don't support. It is explained here:
 [https://docs.microsoft.com/en-us/typography/opentype/spec/glyf]
{quote}The purpose of USE_MY_METRICS is to force the lsb and rsb to take on a desired value. For example, an i-circumflex (U+00EF) is often composed of the circumflex and a dotless-i. In order to force the composite to have the same metrics as the dotless-i, set USE_MY_METRICS for the dotless-i component of the composite. Without this bit, the rsb and lsb would be calculated from the 'hmtx' entry for the composite (or would need to be explicitly set with TrueType instructions).
{quote}
But 82 has the same lsb as 274... So maybe this is a dead end.... more investigation is needed...

> Problem with google noto bold font and hungarian characters 
> ------------------------------------------------------------
>
>                 Key: PDFBOX-4494
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4494
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.14
>            Reporter: T O
>            Priority: Major
>         Attachments: PDFBOX-4494.ttf, a.pdf, hungarian-noto.png
>
>
> I have generated a PDF with Hungarian characters using both Noto regular and Noto bold fonts.
> The texts looks correct in the PDF but when generating the PDF page as an image the bold text misplaces the accent for the Hungarian character.
> The image is generated using the following command: 
> java -jar pdfbox-app-2.0.14.jar PDFToImage a.pdf
> Attached are the a.pdf and the generated image.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org