Package com.adobe.fontengine.font
Class SWFFont4Description
- java.lang.Object
-
- com.adobe.fontengine.font.SWFFont4Description
-
public abstract class SWFFont4Description extends java.lang.Object
Fetch the data needed to create a DefineFont4 tag in SWF.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SWFFont4Description.FTESubsetCompletionIterator
Expands the characters in an iteration set to include those that are needed by TLE/CTS.static class
SWFFont4Description.TLFSubsetCompletionIterator
Expands the characters in an iteration set to include those that may be added by TLF.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
canDisplay(int c)
Return true iff the font has a non-notdef glyph associated with it.abstract java.lang.String
getFamily()
Get the family name for the font.abstract int
getFirstChar()
Get the lowest unicode scalar value that has a non-notdef glyph associated with it.abstract int
getLastChar()
Get the largest BMP value that has a non-notdef glyph associated with it.abstract Permission
getPermissions()
Determine the permissions associated with this font.abstract java.lang.String
getSubFamily()
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(java.io.OutputStream stream)
Convert this font into the format expected by DefineFont4's FontData field.abstract void
streamFontData(java.util.Iterator<java.lang.Integer> codepoints, java.io.OutputStream stream)
Convert this font into the format expected by DefineFont4's FontData field.
-
-
-
Method Detail
-
canDisplay
public abstract boolean canDisplay(int c) throws UnsupportedFontException, InvalidFontException
Return true iff the font has a non-notdef glyph associated with it.
-
getFirstChar
public abstract int getFirstChar() throws InvalidFontException, UnsupportedFontException
Get the lowest unicode scalar value that has a non-notdef glyph associated with it.
-
getLastChar
public abstract int getLastChar() throws InvalidFontException, UnsupportedFontException
Get the largest BMP value that has a non-notdef glyph associated with it.
-
getPermissions
public abstract Permission getPermissions() throws InvalidFontException, UnsupportedFontException
Determine the permissions associated with this font.
-
getFamily
public abstract java.lang.String getFamily() throws InvalidFontException, UnsupportedFontException
Get the family name for the font. Return null if none exists.
-
getSubFamily
public abstract java.lang.String getSubFamily() throws InvalidFontException, UnsupportedFontException
Get the subfamily name for the font. Return null if none exists.
-
isBold
public abstract boolean isBold() throws InvalidFontException, UnsupportedFontException
Return true iff the font is the bold member of a family.
-
isItalic
public abstract boolean isItalic() throws InvalidFontException, UnsupportedFontException
Return true iff the font is the italic member of a family.
-
streamFontData
public abstract void streamFontData(java.util.Iterator<java.lang.Integer> codepoints, java.io.OutputStream stream) throws InvalidFontException, UnsupportedFontException, java.io.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
java.io.IOException
-
streamFontData
public abstract void streamFontData(java.io.OutputStream stream) throws InvalidFontException, UnsupportedFontException, java.io.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
java.io.IOException
-
-