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 2014/04/22 19:20:15 UTC

[jira] [Commented] (PDFBOX-1069) Ubuntu throws exceptions when fonts missing

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

Tilman Hausherr commented on PDFBOX-1069:
-----------------------------------------

After looking at the old code, I can tell it fails here:

{code}
FontManager.getStandardFont();
log.info("Using font "+awtFont.getName()+ " instead");
{code}

The standard font in FontManager is "helvetica". I have improved the error message so if this ever happens again with any OS, we'll see what fonts are available there and choose a second standard font. This was done in rev 1589213 in the 1.8 branch and rev 1589214 in the trunk.

> Ubuntu throws exceptions when fonts missing
> -------------------------------------------
>
>                 Key: PDFBOX-1069
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1069
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.6.0
>         Environment: Ubuntu 10.10
>            Reporter: Sarah Kelley
>         Attachments: sakelley_pdf_rendering_problem.zip
>
>
> On a plain vanilla Ubuntu 10.10 install, running
> run-all failed to render any text, and threw lots of exceptions:
>     
>         org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getawtFont(PDTrueTypeFont.java:425)
>         
> ...however, installing the package "ttf-mscorefonts-installer"
> made those exceptions go away.
> (ubuntu1010_output.txt shows the exceptions; ubuntu1010_try2_output.txt is a run after the extra fonts are installed)
>     
> Might be able to fix this one by setting UNKNOWN_FONT in
> Resources/PDFBox_External_Fonts.properties, but it would seem like
> it should choose some reasonable default if it isn't set...
> shouldn't it?



--
This message was sent by Atlassian JIRA
(v6.2#6252)