Package org.apache.batik.gvt.font
Class UnresolvedFontFamily
java.lang.Object
org.apache.batik.gvt.font.UnresolvedFontFamily
- All Implemented Interfaces:
GVTFontFamily
A font family class for unresolved fonts.
- Version:
- $Id: UnresolvedFontFamily.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedFontFamily
(String familyName) Constructs an UnresolvedFontFamily with the specified familyName.UnresolvedFontFamily
(GVTFontFace fontFace) Constructs an UnresolvedFontFamily 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.boolean
This method returns true iff the font is a complex SVG font
-
Field Details
-
fontFace
-
-
Constructor Details
-
UnresolvedFontFamily
Constructs an UnresolvedFontFamily with the specified familyName.- Parameters:
fontFace
- The name of the font family.
-
UnresolvedFontFamily
Constructs an UnresolvedFontFamily with the specified familyName.- Parameters:
familyName
- The name of the font family.
-
-
Method Details
-
getFontFace
Returns the font-face information for this font family.- Specified by:
getFontFace
in interfaceGVTFontFamily
-
getFamilyName
Returns the font family name.- Specified by:
getFamilyName
in interfaceGVTFontFamily
- Returns:
- the family name.
-
deriveFont
Derives a GVTFont object of the correct size. As this font family is yet to be resolved this will always return null.- Specified by:
deriveFont
in 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:
deriveFont
in 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:GVTFontFamily
This method returns true iff the font is a complex SVG font- Specified by:
isComplex
in interfaceGVTFontFamily
-