public class DefineFont2 extends DefinitionTag implements SWFConstants
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DefineFont2.KerningRecord | 
CONTROL, DEFAULT_VERSION, DEFINITION, LANGUAGE_JAPANESE, LANGUAGE_KOREAN, LANGUAGE_LATIN, LANGUAGE_SIMPLIFIED_CHINESE, LANGUAGE_TRADITIONAL_CHINESE, TWIPS| Constructor and Description | 
|---|
| DefineFont2() | 
| DefineFont2(int character,
           boolean shiftJIS,
           boolean ansi,
           boolean italic,
           boolean bold,
           boolean wideOffsets,
           boolean wideCodes,
           int languageCode,
           String name,
           SWFShape[] shapes,
           int[] codes,
           int ascent,
           int descent,
           int leading,
           short[] advances,
           Rectangle2D[] bounds,
           DefineFont2.KerningRecord[] kerning) | 
| DefineFont2(int character,
           boolean italic,
           boolean bold,
           String name,
           SWFShape[] shapes,
           int[] codes) | 
| Modifier and Type | Method and Description | 
|---|---|
| short[] | getAdvances() | 
| int | getAscent() | 
| Rectangle2D[] | getBounds() | 
| int[] | getCodes() | 
| int | getDescent() | 
| long | getId() | 
| DefineFont2.KerningRecord[] | getKerning() | 
| int | getLeading() | 
| String | getName() | 
| SWFShape[] | getShapes() | 
| boolean | getShiftJIS() | 
| boolean | hasWideCodes() | 
| boolean | hasWideOffsets() | 
| boolean | isAnsi() | 
| boolean | isBold() | 
| boolean | isItalic() | 
| SWFTag | read(int tagID,
    SWFInputStream swf,
    int len) | 
| void | setAdvances(int[] advances) | 
| void | setAdvances(short[] advances) | 
| void | setAnsi(boolean ansi) | 
| void | setAscent(int ascent) | 
| void | setBold(boolean bold) | 
| void | setBounds(Rectangle2D[] bounds) | 
| void | setCodes(int[] codes) | 
| void | setDescent(int descent) | 
| void | setId(int id) | 
| void | setItalic(boolean italic) | 
| void | setKerning(DefineFont2.KerningRecord[] kerning) | 
| void | setLeading(int leading) | 
| void | setName(String name) | 
| void | setShapes(SWFShape[] shapes) | 
| void | setShiftJIS(boolean shiftJIS) | 
| void | setWideCodes(boolean wideCodes) | 
| void | setWideOffsets(boolean wideOffsets) | 
| String | toString() | 
| void | write(int tagID,
     SWFOutputStream swf) | 
getTagTypepublic DefineFont2()
public DefineFont2(int character,
           boolean italic,
           boolean bold,
           String name,
           SWFShape[] shapes,
           int[] codes)
public DefineFont2(int character,
           boolean shiftJIS,
           boolean ansi,
           boolean italic,
           boolean bold,
           boolean wideOffsets,
           boolean wideCodes,
           int languageCode,
           String name,
           SWFShape[] shapes,
           int[] codes,
           int ascent,
           int descent,
           int leading,
           short[] advances,
           Rectangle2D[] bounds,
           DefineFont2.KerningRecord[] kerning)
public SWFTag read(int tagID, SWFInputStream swf, int len) throws IOException
read in class SWFTagIOExceptionpublic void write(int tagID,
         SWFOutputStream swf)
           throws IOException
write in class SWFTagIOExceptionpublic long getId()
public boolean getShiftJIS()
public boolean isAnsi()
public boolean isItalic()
public boolean isBold()
public boolean hasWideOffsets()
public boolean hasWideCodes()
public String getName()
getName in class org.freehep.util.io.Tagpublic SWFShape[] getShapes()
public int[] getCodes()
public int getAscent()
public int getDescent()
public int getLeading()
public short[] getAdvances()
public Rectangle2D[] getBounds()
public DefineFont2.KerningRecord[] getKerning()
public void setId(int id)
public void setShiftJIS(boolean shiftJIS)
public void setAnsi(boolean ansi)
public void setItalic(boolean italic)
public void setBold(boolean bold)
public void setWideOffsets(boolean wideOffsets)
public void setWideCodes(boolean wideCodes)
public void setName(String name)
public void setCodes(int[] codes)
public void setShapes(SWFShape[] shapes)
public void setAscent(int ascent)
public void setDescent(int descent)
public void setLeading(int leading)
public void setAdvances(short[] advances)
public void setAdvances(int[] advances)
public void setBounds(Rectangle2D[] bounds)
public void setKerning(DefineFont2.KerningRecord[] kerning)
public String toString()
toString in class DefinitionTagCopyright © 2014. All rights reserved.