summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2014-11-26 15:00:57 +0000
committerLuis Bernardo <lbernardo@apache.org>2014-11-26 15:00:57 +0000
commit97e5ccb03a3990c94324bde7fa617a77566e1e62 (patch)
treecca8e2e34f81e6b03f8bdc422283cea0b70e2c51 /test
parent28928fd32da91135de225db940aca24eb74c31f4 (diff)
downloadxmlgraphics-fop-97e5ccb03a3990c94324bde7fa617a77566e1e62.tar.gz
xmlgraphics-fop-97e5ccb03a3990c94324bde7fa617a77566e1e62.zip
reapply r1637817 (new ant task removes cache)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1641827 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, 7 insertions, 5 deletions
diff --git a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
index 4c89d00da..c4b471ee5 100644
--- a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
+++ b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java
@@ -47,7 +47,8 @@ public class DejaVuLGCSerifTestCase {
@Before
public void setUp() throws Exception {
File file = new File("test/resources/fonts/ttf/DejaVuLGCSerif.ttf");
- font = FontLoader.loadFont(file.toURI(), "", true, EmbeddingMode.AUTO, EncodingMode.AUTO,
+ FontUris fontUris = new FontUris(file.toURI(), null);
+ font = FontLoader.loadFont(fontUris, "", 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 c8099f860..e4179f1f6 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);
- sut = new EmbedFontInfo(metricsURI, kerning, useAdvanced, triplets, embedURI, subFontName,
- encMode, embedMode);
+ FontUris fontUris = new FontUris(embedURI, metricsURI);
+ sut = new EmbedFontInfo(fontUris, kerning, useAdvanced, triplets, subFontName, encMode, embedMode);
}
@Test
@@ -82,8 +82,9 @@ public class EmbedFontInfoTestCase {
@Test
public void testQuirkyBoundaryCasesIsEmbedded() {
- sut = new EmbedFontInfo(metricsURI, kerning, useAdvanced, sut.getFontTriplets(), null,
- subFontName, encMode, embedMode);
+ FontUris fontUris = new FontUris(null, metricsURI);
+ sut = new EmbedFontInfo(fontUris, kerning, useAdvanced, sut.getFontTriplets(), subFontName, encMode,
+ embedMode);
sut.setEmbedded(true);
assertFalse(sut.isEmbedded());