Package com.adobe.fontengine.font
Class SWFFont4Description
java.lang.Object
com.adobe.fontengine.font.SWFFont4Description
Fetch the data needed to create a DefineFont4 tag in SWF.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Expands the characters in an iteration set to include those that are needed by TLE/CTS.static final class
Expands the characters in an iteration set to include those that may be added by TLF. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
canDisplay
(int c) Return true iff the font has a non-notdef glyph associated with it.abstract String
Get the family name for the font.abstract int
Get the lowest unicode scalar value that has a non-notdef glyph associated with it.abstract int
Get the largest BMP value that has a non-notdef glyph associated with it.abstract Permission
Determine the permissions associated with this font.abstract String
Get the subfamily name for the font.abstract boolean
isBold()
Return true iff the font is the bold member of a family.abstract boolean
isItalic()
Return true iff the font is the italic member of a family.abstract void
streamFontData
(OutputStream stream) Convert this font into the format expected by DefineFont4's FontData field.abstract void
streamFontData
(Iterator<Integer> codepoints, OutputStream stream) Convert this font into the format expected by DefineFont4's FontData field.
-
Method Details
-
canDisplay
Return true iff the font has a non-notdef glyph associated with it. -
getFirstChar
Get the lowest unicode scalar value that has a non-notdef glyph associated with it. -
getLastChar
Get the largest BMP value that has a non-notdef glyph associated with it. -
getPermissions
Determine the permissions associated with this font. -
getFamily
Get the family name for the font. Return null if none exists. -
getSubFamily
Get the subfamily name for the font. Return null if none exists. -
isBold
Return true iff the font is the bold member of a family. -
isItalic
Return true iff the font is the italic member of a family. -
streamFontData
public abstract void streamFontData(Iterator<Integer> codepoints, OutputStream stream) throws InvalidFontException, UnsupportedFontException, IOException Convert this font into the format expected by DefineFont4's FontData field.- Parameters:
codepoints
- An iterator returning Integers that are the unicode codepoints to be embedded in the font.stream
- The OutputStream to which AFE will write the font data.- Throws:
InvalidFontException
UnsupportedFontException
IOException
-
streamFontData
public abstract void streamFontData(OutputStream stream) throws InvalidFontException, UnsupportedFontException, IOException Convert this font into the format expected by DefineFont4's FontData field. The resulting stream contains all glyphs in the original font.- Parameters:
stream
- The OutputStream to which AFE will write the font data.- Throws:
InvalidFontException
UnsupportedFontException
IOException
-