You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Andreas L. Delmelle (JIRA)" <ji...@apache.org> on 2016/02/07 13:12:39 UTC

[jira] [Commented] (FOP-2573) Font-Family attribute is case-sensitive

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

Andreas L. Delmelle commented on FOP-2573:
------------------------------------------

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)