aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/java2d
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-04-03 08:05:14 +0000
committerJeremias Maerki <jeremias@apache.org>2008-04-03 08:05:14 +0000
commit1f0ed2013cfcc24f8071b09ad17c3dd4eec5633f (patch)
tree0ddb23c225f9aa85917310748b95a59ee77b08c5 /src/java/org/apache/fop/render/java2d
parent5adb538c93cbc3892b751e1fccc3dabe1986037f (diff)
downloadxmlgraphics-fop-1f0ed2013cfcc24f8071b09ad17c3dd4eec5633f.tar.gz
xmlgraphics-fop-1f0ed2013cfcc24f8071b09ad17c3dd4eec5633f.zip
Bugzilla #44737:
Added support for auto-configuring TrueType Collections. XML font metrics files for *.ttc fonts are not required anymore. Submitted by: Jason Harrop <jason.at.plutext.org> Changes to patch or in addition to the patch: - Tab chars removed and Checkstyle issues fixed - Some simplifications in the cache handling (CachedFontInfo is obsolete and less cache-private information is exposed to the outside). - TTCs are fully detected and registered with FOP. - TTCs can also be registered using a "font" element. The new "sub-font" attribute selected the sub-font in the TTC. - Bug fixed in TTFFile: Font names were not decoded correctly (ex. font names in Chinese) - Minimal docs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@644208 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/java2d')
-rw-r--r--src/java/org/apache/fop/render/java2d/FontSetup.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/java2d/FontSetup.java b/src/java/org/apache/fop/render/java2d/FontSetup.java
index 752335521..ade457d95 100644
--- a/src/java/org/apache/fop/render/java2d/FontSetup.java
+++ b/src/java/org/apache/fop/render/java2d/FontSetup.java
@@ -304,7 +304,7 @@ public class FontSetup {
Source fontSource = resolver.resolve(configFontInfo.getEmbedFile());
font = new CustomFontMetricsMapper(fontMetrics, fontSource);
} else {
- CustomFont fontMetrics = FontLoader.loadFont(fontFile, resolver);
+ CustomFont fontMetrics = FontLoader.loadFont(fontFile, null, resolver);
font = new CustomFontMetricsMapper(fontMetrics);
}