| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public PGFont | |
| public PGFont | |
| public PGFont | Returns: the new font.the original font. font, boolean the bold style for the new font. bold, boolean the italic style fort the new font. italic, float the size for the new font. size)Creates a new Font object by replicating the current Font object and applying a new bold style, italic style, and size to it. |
| public String[] | |
| public String[] | |
| public String[] | |
| public boolean | |
| public PGFont[] | Returns: the Font, or null if the font cannot be created.the name for font, it can be name, InputStream null.the stream from which to load the font. stream, float the size for the font. size, boolean whether the font should be register. register, boolean whether to load all fonts from a TTC all)Loads a font from the specified input stream. |
| public PGFont[] | Returns: the Font, or null if the font cannot be created.the name for font, it can be name, String null.the path from which to load the font. path, float the size for the font. size, boolean whether the font should be register. register, boolean whether to load all fonts from a TTC all)Loads a font from the specified path. |
| DEFAULT_FULLNAME | back to summary |
|---|---|
| public static final String DEFAULT_FULLNAME | |
| createFont | back to summary |
|---|---|
| public PGFont createFont(String name, float size) | |
| createFont | back to summary |
|---|---|
| public PGFont createFont(String family, boolean bold, boolean italic, float size) | |
| deriveFont | back to summary |
|---|---|
| public PGFont deriveFont(PGFont font, boolean bold, boolean italic, float size) Creates a new Font object by replicating the current Font object and applying a new bold style, italic style, and size to it. Note bold and italic are hints. | |
| getFontFamilyNames | back to summary |
|---|---|
| public String[] getFontFamilyNames() | |
| getFontFullNames | back to summary |
|---|---|
| public String[] getFontFullNames() | |
| getFontFullNames | back to summary |
|---|---|
| public String[] getFontFullNames(String family) | |
| isPlatformFont | back to summary |
|---|---|
| public boolean isPlatformFont(String name) | |
| loadEmbeddedFont | back to summary |
|---|---|
| public PGFont[] loadEmbeddedFont(String name, InputStream stream, float size, boolean register, boolean all) Loads a font from the specified input stream.
If the load is successful such that the stream can be
fully read, and it represents a supported font format then a
Any failure such as abbreviated input, or an unsupported font format
will result in a
If the
When the font is registered, an alternative
The font This method does not close the input stream.
| |
| loadEmbeddedFont | back to summary |
|---|---|
| public PGFont[] loadEmbeddedFont(String name, String path, float size, boolean register, boolean all) Loads a font from the specified path. If the load is successful
such that the location is readable, and it represents a supported
font format then a
Any failure such as a file being unable to locate or read
from the resource, or if it doesn't represent a font, will result in
a
If the
When the font is registered, an alternative
The font
| |