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

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

{color:#333333}USE_MY_METRICS{color} was a dead end. I looked at the points of 
the accent and the first x value was 476. This was later converted to 347, i.e. 
129 was substracted. This was done because an offset was set for that 
component. In {color:#333333}DTL OTMaster 3.7 light{color} this offset was 
shown as "0x007F" which is 127.

!Clipboard01.png!

Finally the cause was a missed "=" in this code line that read a signed byte:
{code:java}
return signedByte < 127 ? signedByte : signedByte - 256;{code}

> 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
>          Components: FontBox
>    Affects Versions: 2.0.14
>            Reporter: T O
>            Priority: Major
>         Attachments: Clipboard01.png, PDFBOX-4494.ttf, 
> PDFBOX-4494_reduced.pdf, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to