[
https://issues.apache.org/jira/browse/FOP-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15136228#comment-15136228
]
Andreas L. Delmelle edited comment on FOP-2573 at 2/7/16 12:30 PM:
-------------------------------------------------------------------
At first glance, this would indeed be a bug in 2.0. While I did not find it
explicitly mentioned that the "font-family" attribute should or should not be
case-sensitive, looking at an example in the CSS2 specification[*] referenced
by XSL-FO, a value "new century schoolbook" is used, which seems to hint that
it should indeed be treated in a case-insensitive manner... ?
[*] http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-family
EDIT - As a workaround, awaiting a proper fix, if it is only for a few fonts,
one could add a substitutions section to the config file as follows:
{code:language=xml}
<fonts>
<substitutions>
<substitution>
<from font-family="consolas" />
<to font-family="Consolas" />
</substitution>
</substitutions>
</fonts>
{code}
see also: http://xmlgraphics.apache.org/fop/2.1/fonts.html#font_substitution
was (Author: adelmelle):
At first glance, this would indeed be a bug in 2.0. While I did not find it
explicitly mentioned that the "font-family" attribute should or should not be
case-sensitive, looking at an example in the CSS2 specification[*] referenced
by XSL-FO, a value "new century schoolbook" is used, which seems to hint that
it should indeed be treated in a case-insensitive manner... ?
[*] http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-family
> Font-Family attribute is case-sensitive
> ---------------------------------------
>
> Key: FOP-2573
> URL: https://issues.apache.org/jira/browse/FOP-2573
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Window 7 x64, Java build 1.8.0_72-b15
> Reporter: Đorđe Zeljić
>
> I have simple FO file that contains block with font-family attribute (It's
> very simple version of my huge FO file where I found the issue).
> The attribute contains font name (eg. consolas).
> When I try to render PDF I see the warn message:
> WARNING: Font "consolas,normal,400" not found. Substituting with
> "any,normal,400".
> The test FO file is rendered fine in FOP 1.1 version, but not in 2.0 and 2.1
> versions.
> I'm not sure if this is the bug, or it was in 1.1 version.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)