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 2016/06/13 16:44:21 UTC

[jira] [Resolved] (PDFBOX-3379) PDType0Font Subsetting Monospace DejaVuSansMono

     [ https://issues.apache.org/jira/browse/PDFBOX-3379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-3379.
-------------------------------------
       Resolution: Fixed
         Assignee: Tilman Hausherr
    Fix Version/s: 2.1.0
                   2.0.3

Snapshot will be available soon at
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.3-SNAPSHOT/

> PDType0Font Subsetting Monospace DejaVuSansMono
> -----------------------------------------------
>
>                 Key: PDFBOX-3379
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3379
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.2, 2.0.3, 2.1.0
>            Reporter: Christian Maierhofer
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.3, 2.1.0
>
>         Attachments: DejaVuSansMono.ttf, PDFBOX-3379-chinese-bad.pdf, PDFBOX-3379-chinese-good.pdf, PDFBOX-3379-solved.pdf, PDFBox3379.java, TTFFontTestPDFBox2.java, VeraMono.ttf, doTest.pdf
>
>
> Hi,
> we came across the problem that the monospace font dejaVuSansMono has problems with spaces in strings if they are rendered in a pdf  and a PDFType0Font is used for subsetting. If a space is placed within the strings the letters from every word are placed overlapping each other, see attached files. Seems that the advancedWidth array int the HorizontalMetricsTable contains a wrong, very low value as 3rd entry after subsetting the font. We compared it with a second monospace font, and it worked there. The difference between the two fonts is that the dejaVu Mono only contains 4 advanceWidth entries  and the second one contains an entry for every glyph. This second font was VeraMono.ttf . The fonts are loaded via PDType0Font.load(doc, fontfile).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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