Class AWTFontFamily
java.lang.Object
org.apache.batik.gvt.font.AWTFontFamily
- All Implemented Interfaces:
GVTFontFamily
A font family class for AWT fonts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fontprotected GVTFontFacestatic final AttributedCharacterIterator.Attribute -
Constructor Summary
ConstructorsConstructorDescriptionAWTFontFamily(String familyName) Constructs an AWTFontFamily with the specified familyName.AWTFontFamily(GVTFontFace fontFace) Constructs an AWTFontFamily with the specified familyName.AWTFontFamily(GVTFontFace fontFace, Font font) Constructs an AWTFontFamily with the specified familyName. -
Method Summary
Modifier and TypeMethodDescriptionderiveFont(float size, AttributedCharacterIterator aci) Derives a GVTFont object of the correct size.deriveFont(float size, Map attrs) Derives a GVTFont object of the correct size from an attribute Map.Returns the font family name.Returns the font-face information for this font family.booleanThis method returns true iff the font is a complex SVG font
-
Field Details
-
TEXT_COMPOUND_DELIMITER
-
fontFace
-
font
-
-
Constructor Details
-
AWTFontFamily
Constructs an AWTFontFamily with the specified familyName.- Parameters:
fontFace- The name of the font family.
-
AWTFontFamily
Constructs an AWTFontFamily with the specified familyName.- Parameters:
familyName- The name of the font family.
-
AWTFontFamily
Constructs an AWTFontFamily with the specified familyName.- Parameters:
fontFace- The name of the font family.
-
-
Method Details
-
getFamilyName
Returns the font family name.- Specified by:
getFamilyNamein interfaceGVTFontFamily- Returns:
- The family name.
-
getFontFace
Returns the font-face information for this font family.- Specified by:
getFontFacein interfaceGVTFontFamily
-
deriveFont
Derives a GVTFont object of the correct size.- Specified by:
deriveFontin interfaceGVTFontFamily- Parameters:
size- The required size of the derived font.aci- The character iterator that will be rendered using the derived font.
-
deriveFont
Derives a GVTFont object of the correct size from an attribute Map.- Specified by:
deriveFontin interfaceGVTFontFamily- Parameters:
size- The required size of the derived font.attrs- The Attribute Map to get Values from.
-
isComplex
public boolean isComplex()Description copied from interface:GVTFontFamilyThis method returns true iff the font is a complex SVG font- Specified by:
isComplexin interfaceGVTFontFamily
-