| Modifier and Type | Class and Description |
|---|---|
| public static enum | Standard14Fonts.
Enum for the names of the 14 standard fonts. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | ALIASES
Contains all base names and alias names for the known fonts. |
| private static final Map | FONTS
Contains the font metrics for the standard 14 fonts. |
| private static final Map | GENERIC_FONTS
Contains the mapped fonts for the standard 14 fonts. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the name is one of the known namesthe name of font, either a base name or alias fontName)Returns true if the given font name is one of the known names, including alias. |
| public static FontMetrics | |
| private static GlyphList | |
| public static GeneralPath | Returns: the mapped fontname of the standard 14 font baseName,name of glyph glyphName)Returns the path for the character with the given name for the specified Standard 14 font. |
| private static FontBoxFont | Returns: the mapped fontname of the standard 14 font baseNameReturns the mapped font for the specified Standard 14 font. |
| public static Standard14Fonts. | Returns: the base name or null if this is not one of the known namesname of font, either a base name or an alias fontName)Returns the base name of the font which the given font name maps to. |
| public static Set | Returns: the set of known font namesReturns the set of known font names, including aliases. |
| private static void | loadMetrics(Standard14Fonts.
one of the standard 14 font names for which to load the metrics. fontNameLoads the metrics for the base font specified by name. |
| private static void | mapName(Standard14Fonts.
the font name of the Standard 14 font baseNameAdds a standard font name to the map of known aliases, to simplify the logic of finding font metrics by name. |
| private static void | mapName(String
an alias for the font alias, Standard14Fonts.the font name of the Standard 14 font baseNameAdds an alias name for a standard font to the map of known aliases to the map of aliases (alias as key, standard name as value). |
| ALIASES | back to summary |
|---|---|
| private static final Map<String, Standard14Fonts. Contains all base names and alias names for the known fonts. For base fonts both the key and the value will be the base name. For aliases, the key is an alias, and the value is a FontName. We want a single lookup in the map to find the font both by a base name or an alias. | |
| FONTS | back to summary |
|---|---|
| private static final Map<Standard14Fonts. Contains the font metrics for the standard 14 fonts. The key is the font name, value is a FontMetrics instance. Metrics are loaded into this map on demand, only if needed.
| |
| GENERIC_FONTS | back to summary |
|---|---|
| private static final Map<Standard14Fonts. Contains the mapped fonts for the standard 14 fonts. The key is the font name, value is a FontBoxFont instance. FontBoxFont are loaded into this map on demand, only if needed. | |
| Standard14Fonts | back to summary |
|---|---|
| private Standard14Fonts() | |
| containsName | back to summary |
|---|---|
| public static boolean containsName(String fontName) Returns true if the given font name is one of the known names, including alias.
| |
| getAFM | back to summary |
|---|---|
| public static FontMetrics getAFM(String fontName) Returns the metrics for font specified by fontName. Loads the font metrics if not already loaded.
| |
| getGlyphList | back to summary |
|---|---|
| private static GlyphList getGlyphList(Standard14Fonts. | |
| getGlyphPath | back to summary |
|---|---|
| public static GeneralPath getGlyphPath(Standard14Fonts. Returns the path for the character with the given name for the specified Standard 14 font. The mapped font is cached. The path may differ in different environments as it depends on the mapped font.
| |
| getMappedFont | back to summary |
|---|---|
| private static FontBoxFont getMappedFont(Standard14Fonts. Returns the mapped font for the specified Standard 14 font. The mapped font is cached.
| |
| getMappedFontName | back to summary |
|---|---|
| public static Standard14Fonts. Returns the base name of the font which the given font name maps to.
| |
| getNames | back to summary |
|---|---|
| public static Set Returns the set of known font names, including aliases. | |
| loadMetrics | back to summary |
|---|---|
| private static void loadMetrics(Standard14Fonts. Loads the metrics for the base font specified by name. Metric file must exist in the pdfbox jar under /org/apache/pdfbox/resources/afm/
| |
| mapName | back to summary |
|---|---|
| private static void mapName(Standard14Fonts. Adds a standard font name to the map of known aliases, to simplify the logic of finding font metrics by name. We want a single lookup in the map to find the font both by a base name or an alias.
| |
| mapName | back to summary |
|---|---|
| private static void mapName(String alias, Standard14Fonts. Adds an alias name for a standard font to the map of known aliases to the map of aliases (alias as key, standard name as value). We want a single lookup in tbaseNamehe map to find the font both by a base name or an alias.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| private final String | name
Hides java. |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. | |
| public static final Standard14Fonts. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static Standard14Fonts. | |
| public static Standard14Fonts. |
| COURIER | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| COURIER_BOLD | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| COURIER_BOLD_OBLIQUE | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| COURIER_OBLIQUE | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| HELVETICA | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| HELVETICA_BOLD | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| HELVETICA_BOLD_OBLIQUE | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| HELVETICA_OBLIQUE | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| name | back to summary |
|---|---|
| private final String name Hides java. | |
| SYMBOL | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| TIMES_BOLD | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| TIMES_BOLD_ITALIC | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| TIMES_ITALIC | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| TIMES_ROMAN | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| ZAPF_DINGBATS | back to summary |
|---|---|
| public static final Standard14Fonts. | |
| FontName | back to summary |
|---|---|
| private FontName(String name) | |
| getName | back to summary |
|---|---|
| public String getName() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Standard14Fonts. | |
| values | back to summary |
|---|---|
| public static Standard14Fonts. | |