xmlgraphics-fop-dev mailing list archives

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

             Summary: [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
         Attachments: case-sensitivity.patch

This patch attempts to fix the following defect - 

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

View raw message