FreeHEP API
Version current

org.freehep.graphicsio.font
Class FontUtilities

java.lang.Object
  extended byorg.freehep.graphicsio.font.FontUtilities

public class FontUtilities
extends Object

Source Code:
FontUtilities.java

Nested Class Summary
static interface FontUtilities.ShowString
           
 
Method Summary
static List getAllAvailableFonts()
           
static String getEncodedString(String string, CharTable charTable)
          Deprecated. use org.freehep.graphics2d.font.FontEncoder.getEncodedString()
static String getEncodedString(String string, String tableName)
          Deprecated. use org.freehep.graphics2d.font.FontEncoder.getEncodedString()
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)
Deprecated. use org.freehep.graphics2d.font.FontEncoder.getEncodedString()


getEncodedString

public static String getEncodedString(String string,
                                      CharTable charTable)
Deprecated. use org.freehep.graphics2d.font.FontEncoder.getEncodedString()

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.

Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.