|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.TTFDecoder
public final class TTFDecoder
TTFDecoder decodes TrueType or OpenType Fonts so they can be used in a Flash file.
| Constructor Summary | |
|---|---|
TTFDecoder()
|
|
| Method Summary | |
|---|---|
List<Font> |
getFonts()
Get the list of fonts decoded. |
FontDecoder |
newDecoder()
The method implemented by all FontDecoders in order to be registered with the FontRegistry and used by the FontFactory to decode fonts. |
void |
read(File file)
Read a font from a file. |
void |
read(InputStream stream)
Read a font from an input stream. |
void |
read(URL url)
Read a font from a file referenced by a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TTFDecoder()
| Method Detail |
|---|
public FontDecoder newDecoder()
newDecoder in interface FontProvider
public void read(File file)
throws IOException,
DataFormatException
read in interface FontDecoderfile - the path to the file.
IOException - if there is an error reading the font data.
DataFormatException - if the file contains an unsupported format.
public void read(URL url)
throws IOException,
DataFormatException
read in interface FontDecoderurl - the reference to the file.
IOException - if there is an error reading the font data.
DataFormatException - if the file contains an unsupported format.public List<Font> getFonts()
getFonts in interface FontDecoder
public void read(InputStream stream)
throws IOException
stream - the stream containing the font data.
IOException - if there is an error reading the font data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||