GVTFontFamilypublic class AWTFontFamily extends java.lang.Object implements GVTFontFamily
| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.Font |
font |
|
protected GVTFontFace |
fontFace |
|
static java.text.AttributedCharacterIterator.Attribute |
TEXT_COMPOUND_DELIMITER |
| Constructor | Description |
|---|---|
AWTFontFamily(java.lang.String familyName) |
Constructs an AWTFontFamily with the specified familyName.
|
AWTFontFamily(GVTFontFace fontFace) |
Constructs an AWTFontFamily with the specified familyName.
|
AWTFontFamily(GVTFontFace fontFace,
java.awt.Font font) |
Constructs an AWTFontFamily with the specified familyName.
|
| Modifier and Type | Method | Description |
|---|---|---|
GVTFont |
deriveFont(float size,
java.text.AttributedCharacterIterator aci) |
Derives a GVTFont object of the correct size.
|
GVTFont |
deriveFont(float size,
java.util.Map attrs) |
Derives a GVTFont object of the correct size from an attribute Map.
|
java.lang.String |
getFamilyName() |
Returns the font family name.
|
GVTFontFace |
getFontFace() |
Returns the font-face information for this font family.
|
boolean |
isComplex() |
This method returns true iff the font is a complex SVG font
|
public static final java.text.AttributedCharacterIterator.Attribute TEXT_COMPOUND_DELIMITER
protected GVTFontFace fontFace
protected java.awt.Font font
public AWTFontFamily(GVTFontFace fontFace)
fontFace - The name of the font family.public AWTFontFamily(java.lang.String familyName)
familyName - The name of the font family.public AWTFontFamily(GVTFontFace fontFace, java.awt.Font font)
fontFace - The name of the font family.public java.lang.String getFamilyName()
getFamilyName in interface GVTFontFamilypublic GVTFontFace getFontFace()
getFontFace in interface GVTFontFamilypublic GVTFont deriveFont(float size, java.text.AttributedCharacterIterator aci)
deriveFont in interface GVTFontFamilysize - The required size of the derived font.aci - The character iterator that will be rendered using
the derived font.public GVTFont deriveFont(float size, java.util.Map attrs)
deriveFont in interface GVTFontFamilysize - The required size of the derived font.attrs - The Attribute Map to get Values from.public boolean isComplex()
GVTFontFamilyisComplex in interface GVTFontFamilyCopyright ? 2018 Apache Software Foundation. All Rights Reserved.