xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bowditch (Jira)" <j...@apache.org>
Subject [jira] [Commented] (FOP-2936) [PATCH] Font-Family name is case sensitive.
Date Wed, 13 May 2020 09:33:00 GMT

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

Chris Bowditch commented on FOP-2936:
-------------------------------------

Thanks for the patch, but in future can you attach it to the bug to which it relates i.e.
FOP-2573, and not open a new bug. I will do that for you on this occasion, and close this
as a duplicate

> [PATCH] Font-Family name is case sensitive.
> -------------------------------------------
>
>                 Key: FOP-2936
>                 URL: https://issues.apache.org/jira/browse/FOP-2936
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Sanjitha Srinivasan
>            Priority: Major
>         Attachments: case-sensitivity.patch
>
>
> This patch attempts to fix the following defect - 
> https://issues.apache.org/jira/browse/FOP-2573
> FOP performs its font registration and lookup using a HashMap whose key is the FontTriplet
object - a string combination of the font family, font style and font weight. Therefore, 'Courier'
and 'courier' and 'COURIER' are treated as different fonts.
> The change made to address this was to convert all font family names to lower case while
creating the FontTriplet object. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message