https://issues.apache.org/bugzilla/show_bug.cgi?id=49968
Summary: [PATCH] Improve font matching
Product: Batik
Version: 1.8
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: GVT
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26061)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26061)
Patch to improve font matching
The attached patch does three things:
1. Internally register not only the font families but also the actual font
names (FontFamilyResolver).
Example: Where "Univers" is a font family, the font name "Univers 45 Light" is
not currently registered. So if this is used, no match is found and the
fallback "SansSerif" is used.
2. Handle all CSS font weights for Java VMs >= 1.5 (TextUtilities).
There was a simplification in place for handling cases in JVMs prior to 1.5.
3. Handle the case where a font family with spaces contains an integer value
(ex. "Univers 45 Light"), but is not in quotes (FontFamilyManager).
Until now, only the case style="font-family: Univers Bold" would be handled but
not style="font-family: Univers 45 Light".
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]