FreeHEP API
Version v1.2

org.freehep.graphicsio.font
Class FontUtilities

java.lang.Object
  |
  +--org.freehep.graphicsio.font.FontUtilities

public class FontUtilities
extends Object


Nested Class Summary
static interface FontUtilities.ShowString
           
 
Method Summary
static List getAllAvailableFonts()
           
static String getEncodedString(String string, CharTable charTable)
          Returns an unicode encoded string from an ascii encoded string, using the supplied table.
static String getEncodedString(String string, String tableName)
           
static String getWindowsFontName(String fontName)
           
static void showString(Font font, String string, CharTable latinTable, FontUtilities.ShowString device)
          Shows a String and switches the encoding (and font) everytime the unicode characters leave the range of the curent encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAllAvailableFonts

public static List getAllAvailableFonts()

getWindowsFontName

public static String getWindowsFontName(String fontName)

getEncodedString

public static String getEncodedString(String string,
                                      String tableName)

getEncodedString

public static String getEncodedString(String string,
                                      CharTable charTable)
Returns an unicode encoded string from an ascii encoded string, using the supplied table.


showString

public static void showString(Font font,
                              String string,
                              CharTable latinTable,
                              FontUtilities.ShowString device)
                       throws IOException
Shows a String and switches the encoding (and font) everytime the unicode characters leave the range of the curent encoding. Outside the range of the given latinTable, Symbol and ZapfDingbats are checked. If none of these three encodings contain the unicode character, an undefined character is used.

IOException

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.