- java.lang.Object
-
- org.controlsfx.glyphfont.GlyphFontRegistry
-
public final class GlyphFontRegistry extends Object
The glyph font registry automatically registers available fonts using aServiceLoader
facility, however it is also possible to register glyph fonts manually using the providedregister(GlyphFont)
method.Once registered, fonts can be requested by name using the
font(String)
method. Please refer to theGlyphFont
documentation to learn how to use a font.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GlyphFont
font(String familyName)
Retrieve font by its family namestatic void
register(String familyName, InputStream in, int defaultSize)
Registers the specified font as default GlyphFontstatic void
register(String familyName, String uri, int defaultSize)
Registers the specified font as default GlyphFontstatic void
register(GlyphFont font)
Registers the specified font
-
-
-
Method Detail
-
register
public static void register(String familyName, String uri, int defaultSize)
Registers the specified font as default GlyphFont- Parameters:
familyName
- The name of this font.uri
- The location where it can be loaded from.defaultSize
- The default font size
-
register
public static void register(String familyName, InputStream in, int defaultSize)
Registers the specified font as default GlyphFont- Parameters:
familyName
- The name of this font.in
- Inputstream of the font datadefaultSize
- The default font size
-
register
public static void register(GlyphFont font)
Registers the specified font- Parameters:
font
-
-
-