org.apache.batik.bridge
public class SVGFontFamily extends Object implements GVTFontFamily
Field Summary | |
---|---|
protected Boolean | complex |
protected BridgeContext | ctx |
protected Element | fontElement |
protected GVTFontFace | fontFace |
static Attribute | TEXT_COMPOUND_ID |
Constructor Summary | |
---|---|
SVGFontFamily(GVTFontFace fontFace, Element fontElement, BridgeContext ctx)
Constructs an SVGFontFamily.
|
Method Summary | |
---|---|
GVTFont | deriveFont(float size, AttributedCharacterIterator aci)
Derives a GVTFont object of the correct size.
|
GVTFont | deriveFont(float size, Map attrs)
Derives a GVTFont object of the correct size from an attribute Map. |
String | getFamilyName()
Returns the family name of this font.
|
GVTFontFace | getFontFace()
Returns the font-face associated with this font family.
|
boolean | isComplex()
This method looks at the SVG font and checks if any of
the glyphs use renderable child elements. |
static boolean | isComplex(Element fontElement, BridgeContext ctx) |
Parameters: fontFace The font face object that describes this font family. fontElement The element that contains the font data for this family. ctx The bridge context. This is required for lazily loading the font data at render time.
Parameters: size The required size of the derived font. aci The character iterator containing the text to be rendered using the derived font.
Returns: The derived font.
Parameters: size The required size of the derived font. attrs The Attribute Map to get Values from.
Returns: The font family name.
Returns: The font face.