Package com.adobe.fontengine.font
Interface SWFFontDescription
public interface SWFFontDescription
This interface contains methods that allow for the construction of a SWF
DefineFont2 or DefineFont3 tag.
When the mapping from character to glyph occurs in this interface, it is
always a simple mapping. This means no OpenType processing occurs. Only BMP
characters are handled, since that is all DefineFont2/3 can handle.
Synchronization
Implementations of this interface are immutable after contruction and contains no mutable static data. It is therefore threadsafe.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanDisplay(char c) Return true iff the font has a non-notdef glyph associated with it.doubleGet the ascent value for the font.Get the copyright string associated with the font.doubleGet the descent for the font.doubleGet the native scaling units associated with the font.Get the family name for the font.intGet the lowest unicode scalar value that has a non-notdef glyph associated with it.Get the Mac/English full name associated with the font, as required by the DefineFontName tag.doublegetHorizontalAdvance(char ccode) Get the advance width associated with the given character.intGet the largest BMP value that has a non-notdef glyph associated with it.doubleGet the line gap for the font.intGet the number of glyphs in the font.voidgetOutline(char ccode, OutlineConsumer consumer) Get the outline associated with the given character.Determine the permissions associated with this font.Get the postscript name associated with the font.Get the subfamily name for the font.Get the trademark string associated with the font.booleanisBold()Return true iff the font is the bold member of a family.booleanisItalic()Return true iff the font is the italic member of a family.
-
Method Details
-
getOutline
void getOutline(char ccode, OutlineConsumer consumer) throws UnsupportedFontException, InvalidFontException Get the outline associated with the given character. -
getHorizontalAdvance
Get the advance width associated with the given character. -
canDisplay
Return true iff the font 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. -
getAscent
Get the ascent value for the font. The returned value is in emscale units. 0 is returned if no ascent value can be found, even through heuristics. -
getDescent
Get the descent for the font. The returned value is in emscale units. 0 is returned if no descent value can be found, even through heuristics. -
getLineGap
Get the line gap for the font. The returned value is in emscale units. 0 is returned if no line gap value can be found, even through heuristics. -
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. -
getNumGlyphs
Get the number of glyphs in the font. -
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. -
getEmScale
Get the native scaling units associated with the font. All metrics returned directly from this interface must be divided by this value to get to em. -
getCopyright
Get the copyright string associated with the font. Return null if none exists. -
getTrademark
Get the trademark string associated with the font. Return null if none exists. -
getPostscriptName
Get the postscript name associated with the font. Return null if none exists. -
getFullName
Get the Mac/English full name associated with the font, as required by the DefineFontName tag. Return null if none exists.
-