Bug 43835 - [PATCH] Java2D FontSetup should use Font.getName()
Summary: [PATCH] Java2D FontSetup should use Font.getName()
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: awt renderer (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-11 07:09 UTC by David Churavy
Modified: 2012-04-01 06:38 UTC (History)
0 users



Attachments
FontSetup patch to use Font.getName() (2.00 KB, patch)
2007-11-11 07:10 UTC, David Churavy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Churavy 2007-11-11 07:09:37 UTC
The latest (revision version of org.apache.fop.render.java2d.FontSetup uses
java.awt.Font.getFontName() to obtain the detected font name and parses it to
register an appropriate FontTriplet. The problem is that getFontName() returns
the font name in the system's default locale, which can be different that
English and than the name parsing fails. Attaching patch which uses
Font.getName(), tested on Windows XP. Another possibility would be to use
Font.getFontName(Locale.ENGLISH).
Comment 1 David Churavy 2007-11-11 07:10:55 UTC
Created attachment 21108 [details]
FontSetup patch to use Font.getName()
Comment 2 David Churavy 2007-11-11 07:13:04 UTC
Sorry, forgot the revision number: 593573
Comment 3 Jeremias Maerki 2007-11-11 07:32:18 UTC
Applied. Thanks, David, for catching this.
http://svn.apache.org/viewvc?rev=593909&view=rev
Comment 4 Glenn Adams 2012-04-01 06:38:59 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed