1
2 package org.freehep.graphicsio.pdf.test;
3
4 import java.util.Properties;
5
6 import org.freehep.graphicsio.FontConstants;
7 import org.freehep.graphicsio.pdf.PDFGraphics2D;
8 import org.freehep.graphicsio.test.TestFontType1;
9 import org.freehep.util.UserProperties;
10
11
12
13
14
15 public class PDFTestFontType1 extends TestFontType1 {
16
17 public PDFTestFontType1(String[] args) throws Exception {
18 super(args);
19 }
20
21 public void runTest(Properties options) throws Exception {
22 UserProperties user = (options == null) ? new UserProperties()
23 : new UserProperties(options);
24 user.setProperty(PDFGraphics2D.EMBED_FONTS, true);
25 user.setProperty(PDFGraphics2D.EMBED_FONTS_AS,
26 FontConstants.EMBED_FONTS_TYPE1);
27
28 super.runTest(user);
29 }
30
31 public static void main(String[] args) throws Exception {
32 new PDFTestFontType1(args).runTest();
33 }
34 }