pt.tumba.parser.swf
Class FontLoader

java.lang.Object
  extended by pt.tumba.parser.swf.SWFTagTypesImpl
      extended by pt.tumba.parser.swf.FontLoader
All Implemented Interfaces:
SWFHeader, SWFSpriteTagTypes, SWFTags, SWFTagTypes

public class FontLoader
extends SWFTagTypesImpl

Font loading utilities

Author:
unknown

Nested Class Summary
protected  class FontLoader.VectorImpl
          Description of the Class
 
Field Summary
protected  FontDefinition fontDef
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.SWFTagTypesImpl
tags
 
Constructor Summary
FontLoader()
          Constructor for the FontLoader object
 
Method Summary
static FontDefinition loadFont(java.io.InputStream flashMovie)
          Load the first font from the given Flash movie
static FontDefinition loadFont(java.lang.String filename)
          Load the first font from the given Flash movie
 SWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments)
          SWFTagTypes Interface
 
Methods inherited from class pt.tumba.parser.swf.SWFTagTypesImpl
header, tag, tagButtonCXForm, tagDefineBits, tagDefineBitsJPEG2, tagDefineBitsJPEG2, tagDefineBitsJPEG3, tagDefineBitsLossless, tagDefineBitsLossless2, tagDefineButton, tagDefineButton2, tagDefineButtonSound, tagDefineFont, tagDefineFontInfo, tagDefineMorphShape, tagDefineQuickTimeMovie, tagDefineShape, tagDefineShape2, tagDefineShape3, tagDefineSound, tagDefineSprite, tagDefineText, tagDefineText2, tagDefineTextField, tagDoAction, tagEnableDebug, tagEnd, tagExport, tagFrameLabel, tagFreeCharacter, tagGenerator, tagGeneratorCommand, tagGeneratorFont, tagGeneratorText, tagImport, tagJPEGTables, tagNameCharacter, tagPlaceObject, tagPlaceObject2, tagProtect, tagRemoveObject, tagRemoveObject2, tagSerialNumber, tagSetBackgroundColor, tagShowFrame, tagSoundStreamBlock, tagSoundStreamHead, tagSoundStreamHead2, tagStartSound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fontDef

protected FontDefinition fontDef
Description of the Field

Constructor Detail

FontLoader

public FontLoader()
Constructor for the FontLoader object

Method Detail

loadFont

public static FontDefinition loadFont(java.lang.String filename)
                               throws java.io.IOException
Load the first font from the given Flash movie

Parameters:
filename - Description of the Parameter
Returns:
null if no font was found
Throws:
java.io.IOException - Description of the Exception

loadFont

public static FontDefinition loadFont(java.io.InputStream flashMovie)
                               throws java.io.IOException
Load the first font from the given Flash movie

Parameters:
flashMovie - Description of the Parameter
Returns:
null if no font was found
Throws:
java.io.IOException - Description of the Exception

tagDefineFont2

public SWFVectors tagDefineFont2(int id,
                                 int flags,
                                 java.lang.String name,
                                 int numGlyphs,
                                 int ascent,
                                 int descent,
                                 int leading,
                                 int[] codes,
                                 int[] advances,
                                 Rect[] bounds,
                                 int[] kernCodes1,
                                 int[] kernCodes2,
                                 int[] kernAdjustments)
                          throws java.io.IOException
SWFTagTypes Interface

Specified by:
tagDefineFont2 in interface SWFTagTypes
Overrides:
tagDefineFont2 in class SWFTagTypesImpl
Parameters:
id - Description of the Parameter
flags - Description of the Parameter
name - Description of the Parameter
numGlyphs - Description of the Parameter
ascent - Description of the Parameter
descent - Description of the Parameter
leading - Description of the Parameter
codes - Description of the Parameter
advances - Description of the Parameter
bounds - Description of the Parameter
kernCodes1 - Description of the Parameter
kernCodes2 - Description of the Parameter
kernAdjustments - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception