[
https://issues.apache.org/jira/browse/PDFBOX-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280982#comment-14280982
]
Tilman Hausherr commented on PDFBOX-2263:
-----------------------------------------
1.8 had a TTF fallback font. We do pass fonts from the jar, but not in
getType1FallbackFont(). Assuming that you're building from source, could you
change this line
{code}
throw new IllegalStateException("No fonts available on the system for " +
fontName);
{code}
to this one:
{code}
return ttfFallbackFont;
{code}
Does it work?
> 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)