| Modifier and Type | Field and Description |
|---|---|
| private boolean | embeddedFontsLoaded
Flag to keep track whether the fontCache map has been initialized with the embedded fonts. |
| pack-priv FontFactory | |
| private static PrismFontLoader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Font | |
| private Font[] | |
| public Font | font(String
The family of the font family, FontWeight The weight of the font weight, FontPosture The posture or posture of the font posture, float The point size of the font. This can be a fractional value size)Implements abstract com. Searches for an appropriate font based on the font family name and weight and posture style. |
| public float | |
| public List | getFamilies()
Implements abstract com. Gets all the font families installed on the user's system, including any embedded fonts or SDK fonts. |
| private FontFactory | |
| public FontMetrics | |
| public List | getFontNames()
Implements abstract com. Gets the names of all fonts that are installed on the users system, including any embedded fonts and SDK fonts. |
| public List | getFontNames(String family)
Implements abstract com. Gets the names of all fonts in the specified font family that are installed on the users system, including any embedded fonts and SDK fonts. |
| public static PrismFontLoader | |
| public float | |
| pack-priv Properties | |
| private void | |
| public Font[] | loadFont(InputStream in, double size, boolean loadAll)
Implements abstract com.
|
| public Font[] | loadFont(String path, double size, boolean loadAll)
Implements abstract com.
|
| public void |
| embeddedFontsLoaded | back to summary |
|---|---|
| private boolean embeddedFontsLoaded Flag to keep track whether the fontCache map has been initialized with the embedded fonts. | |
| installedFontFactory | back to summary |
|---|---|
| pack-priv FontFactory installedFontFactory | |
| theInstance | back to summary |
|---|---|
| private static PrismFontLoader theInstance | |
| PrismFontLoader | back to summary |
|---|---|
| public PrismFontLoader() | |
| createFont | back to summary |
|---|---|
| private Font createFont(PGFont font) | |
| createFonts | back to summary |
|---|---|
| private Font[] createFonts(PGFont[] fonts) | |
| font | back to summary |
|---|---|
| public Font font(String family, FontWeight weight, FontPosture posture, float size) Implements abstract com. Searches for an appropriate font based on the font family name and weight and posture style. This method is not guaranteed to return a specific font, but does its best to find one that fits the specified requirements. For SDK/runtime fonts, we will attempt to match properties to a SDK/runtime fonts. If a specific SDK font is not found in the runtime JAR, the font loading will revert to FontFactory default font, rather then finding closest matching available SDK font. This is how SDK font loading was handled in the past.
| |
| getCharWidth | back to summary |
|---|---|
| public float getCharWidth(char ch, Font font) Implements abstract com.
| |
| getFamilies | back to summary |
|---|---|
| public List Implements abstract com. Gets all the font families installed on the user's system, including any embedded fonts or SDK fonts.
| |
| getFontFactoryFromPipeline | back to summary |
|---|---|
| private FontFactory getFontFactoryFromPipeline() | |
| getFontMetrics | back to summary |
|---|---|
| public FontMetrics getFontMetrics(Font font) Implements abstract com.
| |
| getFontNames | back to summary |
|---|---|
| public List Implements abstract com. Gets the names of all fonts that are installed on the users system, including any embedded fonts and SDK fonts.
| |
| getFontNames | back to summary |
|---|---|
| public List Implements abstract com. Gets the names of all fonts in the specified font family that are installed on the users system, including any embedded fonts and SDK fonts.
| |
| getInstance | back to summary |
|---|---|
| public static PrismFontLoader getInstance() | |
| getSystemFontSize | back to summary |
|---|---|
| public float getSystemFontSize() Implements abstract com.
| |
| loadEmbeddedFontDefinitions | back to summary |
|---|---|
| pack-priv Properties loadEmbeddedFontDefinitions() | |
| loadEmbeddedFonts | back to summary |
|---|---|
| private void loadEmbeddedFonts() | |
| loadFont | back to summary |
|---|---|
| public Font[] loadFont(InputStream in, double size, boolean loadAll) Implements abstract com.
| |
| loadFont | back to summary |
|---|---|
| public Font[] loadFont(String path, double size, boolean loadAll) Implements abstract com.
| |
| loadFont | back to summary |
|---|---|
| public void loadFont(Font font) Implements abstract com.
| |