1   // Copyright 2005, FreeHEP.
2   package org.freehep.graphics2d.font.test;
3   
4   import org.freehep.graphics2d.font.CharTable;
5   import org.freehep.graphics2d.font.Lookup;
6   
7   /**
8    * Test class to test the generated Encoding Tables.
9    * 
10   * @author Sami Lama
11   * @version $Id: TestLookup.java 8584 2006-08-10 23:06:37Z duns $
12   */
13  public class TestLookup {
14  
15      public static void main(String[] args) {
16          Lookup lookAtIt = null;
17          CharTable aTable = null;
18          lookAtIt = Lookup.getInstance();
19          aTable = lookAtIt.getTable("PDFLatin");
20          for (int i = 0; i < 256; i++) {
21              System.out.println(aTable.toName(i));
22          }
23          aTable = lookAtIt.getTable("STDLatin");
24          for (int i = 0; i < 256; i++) {
25              System.out.println(aTable.toName(i));
26          }
27          aTable = lookAtIt.getTable("MACLatin");
28          for (int i = 0; i < 256; i++) {
29              System.out.println(aTable.toName(i));
30          }
31          aTable = lookAtIt.getTable("WINLatin");
32          for (int i = 0; i < 256; i++) {
33              System.out.println(aTable.toName(i));
34          }
35          aTable = lookAtIt.getTable("ISOLatin");
36          for (int i = 0; i < 256; i++) {
37              System.out.println(aTable.toName(i));
38          }
39          aTable = lookAtIt.getTable("Symbol");
40          for (int i = 0; i < 256; i++) {
41              System.out.println(aTable.toName(i));
42          }
43          aTable = lookAtIt.getTable("ZapfDingbats");
44          for (int i = 0; i < 256; i++) {
45              System.out.println(aTable.toName(i));
46          }
47          aTable = lookAtIt.getTable("Expert");
48          for (int i = 0; i < 256; i++) {
49              System.out.println(aTable.toName(i));
50          }
51          System.out.println(aTable.toEncoding("Aacutesmall"));
52          System.out.println(lookAtIt.toName('\uF8E8'));
53  
54      }
55  }