| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private static Method | |
| pack-priv FontFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public PGFont | |
| public PGFont | createFont(String family, boolean bold, boolean italic, float size)
Implements com.
|
| public synchronized PGFont | deriveFont(PGFont font, boolean bold, boolean italic, float size)
Implements com. Creates a new Font object by replicating the current Font object and applying a new bold style, italic style, and size to it. |
| pack-priv static Font | |
| public String[] | |
| public String[] | |
| public String[] | |
| public boolean | |
| public PGFont[] | loadEmbeddedFont(String name, InputStream fontStream, float size, boolean register, boolean loadAll)
Implements com. Loads a font from the specified input stream. |
| public PGFont[] | loadEmbeddedFont(String name, String path, float size, boolean register, boolean loadAll)
Implements com. Loads a font from the specified path. |
| public static void | registerFont(final FontResource fr)
Printing uses the 2D pipeline which isn't initialised until printing begins, so grabs a copy of the file holding an embedded font to 2D on first use. |
| compositeFontMethodsInitialized | back to summary |
|---|---|
| private static boolean compositeFontMethodsInitialized | |
| getCompositeFontUIResource | back to summary |
|---|---|
| private static Method getCompositeFontUIResource | |
| prismFontFactory | back to summary |
|---|---|
| pack-priv FontFactory prismFontFactory | |
| J2DFontFactory | back to summary |
|---|---|
| pack-priv J2DFontFactory(FontFactory fontFactory) | |
| createFont | back to summary |
|---|---|
| public PGFont createFont(String name, float size) Implements com.
| |
| createFont | back to summary |
|---|---|
| public PGFont createFont(String family, boolean bold, boolean italic, float size) Implements com.
| |
| deriveFont | back to summary |
|---|---|
| public synchronized PGFont deriveFont(PGFont font, boolean bold, boolean italic, float size) Implements com. Doc from com. 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.
| |
| getCompositeFont | back to summary |
|---|---|
| pack-priv static Font getCompositeFont(final Font srcFont) Returns a composite font from the font passed in the argument. Note This method relies on Java2D's sun.* APIs which are subject to change. ALso this may be just a stop gap measure. | |
| getFontFamilyNames | back to summary |
|---|---|
| public String[] getFontFamilyNames() Implements com.
| |
| getFontFullNames | back to summary |
|---|---|
| public String[] getFontFullNames() Implements com.
| |
| getFontFullNames | back to summary |
|---|---|
| public String[] getFontFullNames(String family) Implements com.
| |
| isPlatformFont | back to summary |
|---|---|
| public boolean isPlatformFont(String name) Implements com.
| |
| loadEmbeddedFont | back to summary |
|---|---|
| public PGFont[] loadEmbeddedFont(String name, InputStream fontStream, float size, boolean register, boolean loadAll) Implements com. Doc from com. 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 loadAll) Implements com. Doc from com. 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
| |
| registerFont | back to summary |
|---|---|
| public static void registerFont(final FontResource fr) Printing uses the 2D pipeline which isn't initialised until printing begins, so grabs a copy of the file holding an embedded font to 2D on first use. | |