aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Haumacher <[email protected]>2020-05-10 20:46:27 +0200
committerSven Göthel <[email protected]>2024-02-02 21:04:44 +0100
commit84002e69190f008dc9a7e1d0e3eb080321af9d86 (patch)
treef18497dd167445a37fc816d74015fda3c2575747
parenta0dcc45b95054cfe804d6a7fcbfc487f9cb4fc57 (diff)
Added test case for reading an SVG color font.
-rw-r--r--src/test/java/net/java/dev/typecast/ot/TTFontTest.java5
-rw-r--r--src/test/resources/Gilbert-Color Bold Preview5-license.pdfbin0 -> 291289 bytes
-rw-r--r--src/test/resources/Gilbert-Color Bold Preview5.otfbin0 -> 626352 bytes
3 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/net/java/dev/typecast/ot/TTFontTest.java b/src/test/java/net/java/dev/typecast/ot/TTFontTest.java
index 75aa6a0..f878690 100644
--- a/src/test/java/net/java/dev/typecast/ot/TTFontTest.java
+++ b/src/test/java/net/java/dev/typecast/ot/TTFontTest.java
@@ -63,6 +63,11 @@ public class TTFontTest extends TestCase {
dumpFont("NotoColorEmoji.txt", font);
}
+ public void testLoadColorFont2() throws URISyntaxException, IOException {
+ TTFont font = loadFontResource("Gilbert-Color Bold Preview5.otf");
+ dumpFont("Gilbert-Color Bold Preview5.txt", font);
+ }
+
private void dumpFont(String name, TTFont font)
throws IOException, FileNotFoundException {
new File("target/tmp").mkdirs();
diff --git a/src/test/resources/Gilbert-Color Bold Preview5-license.pdf b/src/test/resources/Gilbert-Color Bold Preview5-license.pdf
new file mode 100644
index 0000000..c2a7f00
--- /dev/null
+++ b/src/test/resources/Gilbert-Color Bold Preview5-license.pdf
Binary files differ
diff --git a/src/test/resources/Gilbert-Color Bold Preview5.otf b/src/test/resources/Gilbert-Color Bold Preview5.otf
new file mode 100644
index 0000000..f21f9a1
--- /dev/null
+++ b/src/test/resources/Gilbert-Color Bold Preview5.otf
Binary files differ