com.flagstone.transform.util.font
Class AWTDecoder
java.lang.Object
com.flagstone.transform.util.font.AWTDecoder
public final class AWTDecoder
- extends Object
AWTDecoder decodes Java AWT Fonts so they can be used in a Flash file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTDecoder
public AWTDecoder()
read
public void read(Font font)
throws IOException,
DataFormatException
- Decode an AWT Font.
- Parameters:
font - an AWT Font object.
- Throws:
IOException - if an error occurs decoding the font data.
DataFormatException - if the font is in a format not supported by
the decoder.
getFonts
public List<Font> getFonts()
- Get the list of fonts decoded.
- Returns:
- a list of fonts.
Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.