ServiceLoader facility, however it is also possible to register
glyph fonts manually using the provided
GlyphFontRegistry#register(GlyphFont) method.
Once registered, fonts can be requested by name using the
GlyphFontRegistry#font(String) method.
Please refer to the GlyphFont documentation
to learn how to use a font.
| Modifier and Type | Field and Description |
|---|---|
| private static Map | fontMap
* Private fields * * |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GlyphFont | |
| public static void | |
| public static void | register(String
The name of this font. familyName, InputStream Inputstream of the font data in, int The default font size defaultSize)Registers the specified font as default GlyphFont |
| public static void |
| fontMap | back to summary |
|---|---|
| private static Map<String, GlyphFont> fontMap * Private fields * * | |
| GlyphFontRegistry | back to summary |
|---|---|
| private GlyphFontRegistry() Private constructor since static class | |
| font | back to summary |
|---|---|
| public static GlyphFont font(String familyName) Retrieve font by its family name | |
| register | back to summary |
|---|---|
| public static void register(String familyName, String uri, int defaultSize) Registers the specified font as default GlyphFont | |
| register | back to summary |
|---|---|
| public static void register(String familyName, InputStream in, int defaultSize) Registers the specified font as default GlyphFont
| |
| register | back to summary |
|---|---|
| public static void register(GlyphFont font) Registers the specified font | |