|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.SWFFontDecoder
public final class SWFFontDecoder
SWFFontDecoder decodes one or more existing font definitions from a Flash file. The definitions may be either DefineFont/FontInfo pairs, DefineFont2 or DefineFont2. Files containing DefineFont4 definitions are not supported since they contain font encoded using the OpenType format.
| Constructor Summary | |
|---|---|
SWFFontDecoder()
|
|
| Method Summary | |
|---|---|
void |
decode(DefineFont definition)
Initialise this object with the information from a flash font definition. |
void |
decode(DefineFont2 object)
Initialise this object with the information from a flash font definition. |
void |
decode(DefineFont3 object)
Initialise this object with the information from a flash font definition. |
void |
decode(FontInfo info)
Initialise this object with the information from a flash font definition. |
void |
decode(FontInfo2 info)
Initialise this object with the information from a flash font definition. |
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(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 SWFFontDecoder()
| 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 FontDecoderpublic void decode(DefineFont definition)
definition - a DefineFont object which contains the definition of the
glyphs.public void decode(FontInfo info)
info - a FontInfo object that contains information on the font name,
weight, style and character codes.public void decode(FontInfo2 info)
info - a FontInfo2 object that contains information on the font name,
weight, style and character codes.public void decode(DefineFont2 object)
object - a DefineFont2 object that contains information on the font
name, weight, style and character codes as well as the glyph
definitions.public void decode(DefineFont3 object)
object - a DefineFont3 object that contains information on the font
name, weight, style and character codes as well as the glyph
definitions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||