aboutsummaryrefslogtreecommitdiffstats
path: root/test
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 /test
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 'test')
-rw-r--r--test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java3
-rw-r--r--test/java/org/apache/fop/fonts/EmbedFontInfoTestCase.java9
2 files changed, 5 insertions, 7 deletions
diff --git a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
index c4b471ee5..4c89d00da 100644
--- a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
+++ b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
@@ -47,8 +47,7 @@ public class DejaVuLGCSerifTestCase {
@Before
public void setUp() throws Exception {
File file = new File("test/resources/fonts/ttf/DejaVuLGCSerif.ttf");
- FontUris fontUris = new FontUris(file.toURI(), null);
- font = FontLoader.loadFont(fontUris, "", true, EmbeddingMode.AUTO, EncodingMode.AUTO,
+ font = FontLoader.loadFont(file.toURI(), "", true, EmbeddingMode.AUTO, EncodingMode.AUTO,
false, false, resolver);
}
diff --git a/test/java/org/apache/fop/fonts/EmbedFontInfoTestCase.java b/test/java/org/apache/fop/fonts/EmbedFontInfoTestCase.java
index e4179f1f6..c8099f860 100644
--- a/test/java/org/apache/fop/fonts/EmbedFontInfoTestCase.java
+++ b/test/java/org/apache/fop/fonts/EmbedFontInfoTestCase.java
@@ -52,8 +52,8 @@ public class EmbedFontInfoTestCase {
public void setUp() {
List<FontTriplet> triplets = new ArrayList<FontTriplet>();
triplets.add(triplet);
- FontUris fontUris = new FontUris(embedURI, metricsURI);
- sut = new EmbedFontInfo(fontUris, kerning, useAdvanced, triplets, subFontName, encMode, embedMode);
+ sut = new EmbedFontInfo(metricsURI, kerning, useAdvanced, triplets, embedURI, subFontName,
+ encMode, embedMode);
}
@Test
@@ -82,9 +82,8 @@ public class EmbedFontInfoTestCase {
@Test
public void testQuirkyBoundaryCasesIsEmbedded() {
- FontUris fontUris = new FontUris(null, metricsURI);
- sut = new EmbedFontInfo(fontUris, kerning, useAdvanced, sut.getFontTriplets(), subFontName, encMode,
- embedMode);
+ sut = new EmbedFontInfo(metricsURI, kerning, useAdvanced, sut.getFontTriplets(), null,
+ subFontName, encMode, embedMode);
sut.setEmbedded(true);
assertFalse(sut.isEmbedded());