]> source.dussan.org Git - xmlgraphics-fop.git/commit
Bugzilla #44451:
authorJeremias Maerki <jeremias@apache.org>
Tue, 19 Feb 2008 13:08:39 +0000 (13:08 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 19 Feb 2008 13:08:39 +0000 (13:08 +0000)
commitff6ac460f195633039ec5697519a1fa1228a038a
treefc864a27368217480320525974ed1e44d0049f11
parent8291833b461bfe86052573a4a091dd0a5a9db6ca
Bugzilla #44451:
The patch fixes two problems:
- If distinct fonts declare the same font family name, the resulting font mapping is currently arbitrary; now, a name-similarity heuristic is used to prioritize the font mappings.
- "Medium" and "demi" fonts are now recognized as "bold", solving several real-world problems (although this solution may be an oversimplification).
Submitted by: Justus Piater <justus-bulk.at.piater.name>

Patch modified by jeremias:
- Style fixes (tab chars)
- Refined font weight identification: medium -> 500, semi/demi -> 600

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@629093 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/fop/fonts/FontInfo.java
src/java/org/apache/fop/fonts/FontResolver.java
src/java/org/apache/fop/fonts/FontTriplet.java
src/java/org/apache/fop/fonts/FontUtil.java
src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
src/java/org/apache/fop/render/PrintRenderer.java
status.xml