aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts/autodetect
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2014-11-11 08:20:24 +0000
committerGlenn Adams <gadams@apache.org>2014-11-11 08:20:24 +0000
commit13376a2c395a787288a98cc76d957ea49e38e518 (patch)
tree4195130e72de7033bba82cf12ab32da3ef2c5e64 /src/java/org/apache/fop/fonts/autodetect
parentc446a6368fa7f88ef4efcdc1f17b195ece9b3836 (diff)
downloadxmlgraphics-fop-13376a2c395a787288a98cc76d957ea49e38e518.tar.gz
xmlgraphics-fop-13376a2c395a787288a98cc76d957ea49e38e518.zip
Revert to r1637810 to fix broken build.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1638047 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/autodetect')
-rw-r--r--src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
index a1d65459a..21ebd4937 100644
--- a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
+++ b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
@@ -40,7 +40,6 @@ import org.apache.fop.fonts.FontCache;
import org.apache.fop.fonts.FontEventListener;
import org.apache.fop.fonts.FontLoader;
import org.apache.fop.fonts.FontTriplet;
-import org.apache.fop.fonts.FontUris;
import org.apache.fop.fonts.FontUtil;
import org.apache.fop.fonts.MultiByteFont;
import org.apache.fop.fonts.truetype.FontFileReader;
@@ -142,15 +141,14 @@ public class FontInfoFinder {
*/
private EmbedFontInfo getFontInfoFromCustomFont(URI fontUri, CustomFont customFont,
FontCache fontCache, InternalResourceResolver resourceResolver) {
- FontUris fontUris = new FontUris(fontUri, null);
List<FontTriplet> fontTripletList = new java.util.ArrayList<FontTriplet>();
generateTripletsFromFont(customFont, fontTripletList);
String subFontName = null;
if (customFont instanceof MultiByteFont) {
subFontName = ((MultiByteFont) customFont).getTTCName();
}
- EmbedFontInfo fontInfo = new EmbedFontInfo(fontUris, customFont.isKerningEnabled(),
- customFont.isAdvancedEnabled(), fontTripletList, subFontName,
+ EmbedFontInfo fontInfo = new EmbedFontInfo(null, customFont.isKerningEnabled(),
+ customFont.isAdvancedEnabled(), fontTripletList, fontUri, subFontName,
EncodingMode.AUTO, EmbeddingMode.AUTO);
fontInfo.setPostScriptName(customFont.getFontName());
if (fontCache != null) {
@@ -250,9 +248,8 @@ public class FontInfoFinder {
} else {
// The normal case
try {
- FontUris fontUris = new FontUris(fontURI, null);
- customFont = FontLoader.loadFont(fontUris, null, true, EmbeddingMode.AUTO, EncodingMode.AUTO,
- useKerning, useAdvanced, resourceResolver);
+ customFont = FontLoader.loadFont(fontURI, null, true, EmbeddingMode.AUTO,
+ EncodingMode.AUTO, useKerning, useAdvanced, resourceResolver);
if (this.eventListener != null) {
customFont.setEventListener(this.eventListener);
}