|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ movie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.anotherbigidea.flash.movie
Class FontDefinition

java.lang.Objectcom.anotherbigidea.flash.movie.FontDefinition
- public class FontDefinition
- extends java.lang.Object
A Font Definition that can referenced by Font symbols. If read in from an existing Flash movie the font definition may only contain a subset of the glyphs in the font. To use a system font set the hasMetrics flag to false.
| Nested Class Summary | |
static class |
FontDefinition.Glyph
A Glyph within the font. |
static class |
FontDefinition.KerningPair
A Kerning Pair is an adjustment to the advance between two particular glyphs. |
| Field Summary | |
protected double |
ascent
|
protected double |
descent
|
protected java.util.HashMap |
glyphLookup
|
protected java.util.ArrayList |
glyphs
|
protected boolean |
hasMetrics
|
protected boolean |
isAnsi
|
protected boolean |
isBold
|
protected boolean |
isItalic
|
protected boolean |
isShiftJIS
|
protected boolean |
isUnicode
|
protected java.util.ArrayList |
kerning
|
protected java.util.HashMap |
kernLookup
|
protected double |
leading
|
protected java.lang.String |
name
|
| Constructor Summary | |
FontDefinition()
|
|
FontDefinition(java.lang.String name,
double ascent,
double descent,
double leading,
boolean isUnicode,
boolean isShiftJIS,
boolean isAnsi,
boolean isItalic,
boolean isBold,
boolean hasMetrics)
|
|
| Method Summary | |
double |
getAscent()
|
double |
getDescent()
|
FontDefinition.Glyph |
getGlyph(int code)
Look up a glyph by code |
java.util.ArrayList |
getGlyphList()
Get the List of Glyph objects |
double |
getKerningOffset(int code1,
int code2)
Get the kerning adjustment required between the two given codes |
java.util.ArrayList |
getKerningPairList()
Get the List of KerningPair objects |
double |
getLeading()
|
java.lang.String |
getName()
|
boolean |
hasMetrics()
|
boolean |
isAnsi()
|
boolean |
isBold()
|
boolean |
isItalic()
|
boolean |
isShiftJIS()
|
boolean |
isUnicode()
|
void |
setAscent(double ascent)
|
void |
setDescent(double descent)
|
void |
setFontFlags(boolean isUnicode,
boolean isShiftJIS,
boolean isAnsi,
boolean isItalic,
boolean isBold,
boolean hasMetrics)
|
void |
setLeading(double leading)
|
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
name
protected java.lang.String name
ascent
protected double ascent
descent
protected double descent
leading
protected double leading
isUnicode
protected boolean isUnicode
isShiftJIS
protected boolean isShiftJIS
isAnsi
protected boolean isAnsi
isItalic
protected boolean isItalic
isBold
protected boolean isBold
hasMetrics
protected boolean hasMetrics
glyphs
protected java.util.ArrayList glyphs
kerning
protected java.util.ArrayList kerning
glyphLookup
protected java.util.HashMap glyphLookup
kernLookup
protected java.util.HashMap kernLookup
| Constructor Detail |
FontDefinition
public FontDefinition()
FontDefinition
public FontDefinition(java.lang.String name, double ascent, double descent, double leading, boolean isUnicode, boolean isShiftJIS, boolean isAnsi, boolean isItalic, boolean isBold, boolean hasMetrics)
| Method Detail |
getName
public java.lang.String getName()
getAscent
public double getAscent()
getDescent
public double getDescent()
getLeading
public double getLeading()
isUnicode
public boolean isUnicode()
isShiftJIS
public boolean isShiftJIS()
isAnsi
public boolean isAnsi()
isItalic
public boolean isItalic()
isBold
public boolean isBold()
hasMetrics
public boolean hasMetrics()
getGlyphList
public java.util.ArrayList getGlyphList()
- Get the List of Glyph objects
getKerningPairList
public java.util.ArrayList getKerningPairList()
- Get the List of KerningPair objects
setName
public void setName(java.lang.String name)
setAscent
public void setAscent(double ascent)
setDescent
public void setDescent(double descent)
setLeading
public void setLeading(double leading)
setFontFlags
public void setFontFlags(boolean isUnicode,
boolean isShiftJIS,
boolean isAnsi,
boolean isItalic,
boolean isBold,
boolean hasMetrics)
getGlyph
public FontDefinition.Glyph getGlyph(int code)
- Look up a glyph by code
getKerningOffset
public double getKerningOffset(int code1,
int code2)
- Get the kerning adjustment required between the two given codes
|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ movie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.anotherbigidea.flash.movie.FontDefinition