public class FontUtilities extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FontUtilities.ShowString |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getAllAvailableFonts() |
static Hashtable<AttributedCharacterIterator.Attribute,Object> |
getAttributes(Font font)
there is a bug in the jdk 1.6 which makes
Font.getAttributes() not work correctly.
|
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.
|
public static String getEncodedString(String string, String tableName)
public static String getEncodedString(String string, CharTable charTable)
public static void showString(Font font, String string, CharTable latinTable, FontUtilities.ShowString device) throws IOException
IOException
public static Hashtable<AttributedCharacterIterator.Attribute,Object> getAttributes(Font font)
font
- fontCopyright © 2014. All rights reserved.