aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
diff options
context:
space:
mode:
authorPeter Hancock <phancock@apache.org>2012-05-28 15:30:46 +0000
committerPeter Hancock <phancock@apache.org>2012-05-28 15:30:46 +0000
commit05b2c8d4ea0e085184274bde2fbcacd1618eee1e (patch)
tree27f9f2afe4b8efcbd53066daa89a61aed6e5fa52 /src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
parent125dc15007143f64cd7f7f7035e7375029e7c185 (diff)
parentd48e0e1f467c58a22c4d1b19591d4fa9d22aa8c6 (diff)
downloadxmlgraphics-fop-05b2c8d4ea0e085184274bde2fbcacd1618eee1e.tar.gz
xmlgraphics-fop-05b2c8d4ea0e085184274bde2fbcacd1618eee1e.zip
Merged trunk@1343133
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1343285 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java')
-rw-r--r--src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java b/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
index fb88b8bce..7ac350d5d 100644
--- a/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
+++ b/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
@@ -51,13 +51,14 @@ public class ConfiguredFontCollection implements FontCollection {
* Main constructor
* @param fontResolver a font resolver
* @param customFonts the list of custom fonts
+ * @param useComplexScriptFeatures true if complex script features enabled
*/
public ConfiguredFontCollection(FontResolver fontResolver,
- List/*<EmbedFontInfo>*/ customFonts) {
+ List/*<EmbedFontInfo>*/ customFonts, boolean useComplexScriptFeatures) {
this.fontResolver = fontResolver;
if (this.fontResolver == null) {
//Ensure that we have minimal font resolution capabilities
- this.fontResolver = FontManager.createMinimalFontResolver();
+ this.fontResolver = FontManager.createMinimalFontResolver(useComplexScriptFeatures);
}
this.embedFontInfoList = customFonts;
}
@@ -89,7 +90,8 @@ public class ConfiguredFontCollection implements FontCollection {
} else {
CustomFont fontMetrics = FontLoader.loadFont(
fontFile, null, true, EncodingMode.AUTO,
- configFontInfo.getKerning(), fontResolver);
+ configFontInfo.getKerning(),
+ configFontInfo.getAdvanced(), fontResolver);
font = new CustomFontMetricsMapper(fontMetrics);
}