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 Type
    Method
    Description
    boolean
    canDisplay(char c)
    Return true iff the font has a non-notdef glyph associated with it.
    double
    Get the ascent value for the font.
    Get the copyright string associated with the font.
    double
    Get the descent for the font.
    double
    Get the native scaling units associated with the font.
    Get the family name for the font.
    int
    Get 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.
    double
    Get the advance width associated with the given character.
    int
    Get the largest BMP value that has a non-notdef glyph associated with it.
    double
    Get the line gap for the font.
    int
    Get the number of glyphs in the font.
    void
    getOutline(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.
    boolean
    Return true iff the font is the bold member of a family.
    boolean
    Return true iff the font is the italic member of a family.