[
https://issues.apache.org/jira/browse/PDFBOX-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990395#comment-13990395
]
Juraj Lonc commented on PDFBOX-2059:
------------------------------------
I made 2 fixes for this. Both are for PDTrueTypeFont. I don't know whether it
is useful or you already have some other plans for this bug.
1. added getFontWidth() where I calculate widths from TTF font. Right now you
are relying only on "widths" defined within PDF
2. modified getExternalFontFile2() so I am looking for system fonts too. Right
now you are using only fonts defined in PDFBox_External_Fonts.properties
> Characters are not positioned properly (due to wrong width&height of chars)
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-2059
> URL: https://issues.apache.org/jira/browse/PDFBOX-2059
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Juraj Lonc
> Assignee: Andreas Lehmkühler
> Attachments: DPH 032014.pdf
>
>
> Characters in this PDF are not positioned properly.
> All characters are rendered at position x=0.0
> Problem is in PDFont.getFontWidth(). it returns 0.0 for every char.
> The same applies for PDFont.getFontHeight()
--
This message was sent by Atlassian JIRA
(v6.2#6252)