From 0e6c4648996b5bfd38330129fcdfaaa72f86b09c Mon Sep 17 00:00:00 2001 From: Mehdi Houshmand Date: Fri, 16 Mar 2012 11:44:09 +0000 Subject: Bugzila#52849: SVG font being painted as shapes when font present in the system git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1301445 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/fonts/FontEventProcessingTestCase.java | 10 ++++++ test/java/org/apache/fop/fonts/svg-fonts.fo | 37 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 test/java/org/apache/fop/fonts/svg-fonts.fo (limited to 'test/java') diff --git a/test/java/org/apache/fop/fonts/FontEventProcessingTestCase.java b/test/java/org/apache/fop/fonts/FontEventProcessingTestCase.java index 898f83197..c17062e7b 100644 --- a/test/java/org/apache/fop/fonts/FontEventProcessingTestCase.java +++ b/test/java/org/apache/fop/fonts/FontEventProcessingTestCase.java @@ -57,4 +57,14 @@ public class FontEventProcessingTestCase { MimeConstants.MIME_PDF); } + @Test + public void testSVGFontStrokedAsShapes() throws FOPException, TransformerException, IOException, + SAXException { + // svg-fonts.fo embeds two fonts; one that is present in the system and the other is not; the + // missing font is stroked as shapes while the fonts that exists is stroked as text + InputStream inStream = getClass().getResourceAsStream("svg-fonts.fo"); + eventsTests.doTest(inStream, null, FontEventProducer.class.getName() + ".svgTextStrokedAsShapes", + MimeConstants.MIME_PDF); + } + } diff --git a/test/java/org/apache/fop/fonts/svg-fonts.fo b/test/java/org/apache/fop/fonts/svg-fonts.fo new file mode 100644 index 000000000..0c5f3f599 --- /dev/null +++ b/test/java/org/apache/fop/fonts/svg-fonts.fo @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + ACFG + ACFG + + + + + + -- cgit v1.2.3