public final class Standard14Fonts extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Standard14Fonts.FontName
Enum for the names of the 14 standard fonts.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsName(String fontName)
Returns true if the given font name is one of the known names, including alias.
|
static org.apache.fontbox.afm.FontMetrics |
getAFM(String fontName)
Returns the metrics for font specified by fontName.
|
static GeneralPath |
getGlyphPath(Standard14Fonts.FontName baseName,
String glyphName)
Returns the path for the character with the given name for the specified Standard 14 font.
|
static Standard14Fonts.FontName |
getMappedFontName(String fontName)
Returns the base name of the font which the given font name maps to.
|
static Set<String> |
getNames()
Returns the set of known font names, including aliases.
|
public static org.apache.fontbox.afm.FontMetrics getAFM(String fontName)
fontName - name of font; either a base name or aliasIllegalArgumentException - if no metrics exist for that font.public static boolean containsName(String fontName)
fontName - the name of font, either a base name or aliaspublic static Set<String> getNames()
public static Standard14Fonts.FontName getMappedFontName(String fontName)
fontName - name of font, either a base name or an aliaspublic static GeneralPath getGlyphPath(Standard14Fonts.FontName baseName, String glyphName) throws IOException
baseName - name of the standard 14 fontglyphName - name of glyphIOException - if the data could not be readCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.