Formatting Object Model Reference > Formatting > Datatypes > fTypeface interface
  
fTypeface interface
This object represents a physical font available to ALD.
This object inherits from fFont.
FontTypes enumeration
Which type of font this is. Note that old 3B2 fonts can have any value below 128.
The FontTypes enumeration has the following constants of type int.
TYPE_3B2 = 0
This is an old 3B2 font.
TYPE_TRUETYPE = 128
This is a TrueType or OpenType font.
TYPE_PSEUDOFONT = 256
This is a PseudoFont.
StyleWeight enumeration
The weight of the font.
The StyleWeight enumeration has the following constants of type int.
WEIGHT_ANY = 0
Unknown or unspecified.
WEIGHT_THIN = 100
Thin.
WEIGHT_EXTRALIGHT = 200
Extra-light.
WEIGHT_LIGHT = 300
Light.
WEIGHT_NORMAL = 400
Normal (Regular).
WEIGHT_MEDIUM = 500
Medium.
WEIGHT_SEMIBOLD = 600
Semi-bold.
WEIGHT_BOLD = 700
Bold.
WEIGHT_EXTRABOLD = 800
Extra-bold.
WEIGHT_HEAVY = 900
Heavy.
StyleItalic enumeration
Whether this font is italic or not.
The StyleItalic enumeration has the following constants of type int.
ITALIC_ANY = 0
Unknown or unspecified.
ITALIC_NO = 1
Normal.
ITALIC_YES = 2
Italic.
StyleProportion enumeration
The proportion of the font.
The StyleProportion enumeration has the following constants of type int.
PROPORTION_ANY = 0
Unknown or unspecified.
PROPORTION_ULTRACONDENSED = 1
Ultra-condensed.
PROPORTION_EXTRACONDENSED = 2
Extra-condensed.
PROPORTION_CONDENSED = 3
Condensed.
PROPORTION_SEMICONDENSED = 4
Semi-condensed.
PROPORTION_NORMAL = 5
Normal (Medium).
PROPORTION_SEMIEXPANDED = 6
Semi-expanded.
PROPORTION_EXPANDED = 7
Expanded.
PROPORTION_EXTRAEXPANDED = 8
Extra-expanded.
PROPORTION_ULTRAEXPANDED = 9
Ultra-expanded.
FamilyTypes enumeration
The type of family the font belongs in.
The FamilyTypes enumeration has the following constants of type int.
FAMILY_ANY = 0
Unknown or unspecified.
FAMILY_TEXT = 2
Text and Display.
FAMILY_SCRIPT = 3
Script.
FAMILY_DECORATIVE = 4
Decorative.
FAMILY_PICTORIAL = 5
Pictorial.
copyright attribute
Copyright information for this font object.
copyright
Access
read-only
Returns
String
embedded attribute
Indicates whether this font is embedded within the current document.
embedded
Access
read-only
Returns
boolean
family attribute
The name of the font family this typeface belongs to, if known.
family
Access
read-only
Returns
String
familyType attribute
The type of family this font belongs in. Possible values are in fTypeface-FamilyTypes.
familyType
Access
read-only
Returns
int
italic attribute
Whether the font is italic or not. Possible values are in fTypeface-StyleItalic.
italic
Access
read-only
Returns
int
licensed attribute
Indicates that this font is licensed for embedding.
licensed
Access
read-only
Returns
boolean
longName attribute
The full name of the typeface represented by this object.
longName
Access
read-only
Returns
String
proportion attribute
Whether the font is condensed, normal width, or expanded. Possible values are in fTypeface-StyleProportion.
proportion
Access
read-only
Returns
int
readOnly attribute
Indicates that this font is read-only.
readOnly
Access
read-only
Returns
boolean
shortName attribute
A short, unique internal name of this typeface.
shortName
Access
read-only
Returns
String
type attribute
The type of font file underlying this typeface. Possible values are in fTypeface-FontTypes. Note that old 3B2 fonts can have any value below 128.
type
Access
read-only
Returns
int
weight attribute
The weight of the font. Typical values are in fTypeface-StyleWeight.
weight
Access
read-only
Returns
int
hasCharacter method
Checks to see if this typeface has a glyph at this character position.
hasCharactercharacter
Parameters
intcharacter
The character position.
Returns
boolean. If true, there is a glyph at this character position in the typeface.
readResolve method
Return the object corresponding to the given serialized representation.
readResolveobj
Parameters
Objectobj
The serialized representation.
Returns
fTypeface. The object corresponding to the serialized representation.
writeReplace method
Create a serializable representation of this object.
writeReplace
Parameters
None
Returns
Object. A serializable representation of this object.