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

Tilman Hausherr commented on PDFBOX-2263:
-----------------------------------------

Here's the segment that lists the directories for non-Windows, non-mac systems:
{code}
protected String[] getSearchableDirectories()
    {
        return new String[] { System.getProperty("user.home") + "/.fonts", // 
user
                "/usr/local/fonts", // local
                "/usr/local/share/fonts", // local shared
                "/usr/share/fonts", // system
                "/usr/X11R6/lib/X11/fonts" // X
        };
    }
{code}
And this specifies font files:
{code}
    private boolean checkFontfile(File file)
    {
        String name = file.getName().toLowerCase();
        return name.endsWith(".ttf") || name.endsWith(".otf") || 
name.endsWith(".pfb") || name.endsWith(".ttc");
    }
{code}
Do you have any of these directories on your system? If yes, are there such 
files?

> Support OS with limited fonts
> -----------------------------
>
>                 Key: PDFBOX-2263
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2263
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>
> Some operating systems (centos base) have no /usr/share/fonts so if pdf 
> doesnt embed fonts you only get default font with pdf to image, no bold or 
> italic.
> Could pdfbox add back fonts inside jars as fallback as we had in 1.8 in 
> pdfbox/src/main/resources/org/apache/pdfbox/resources/ttf/



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

Reply via email to