GlyphFont
abstract class GlyphFont<F extends IFontFace>
Implements: IFont
Known subtypes: BitmapFont, MsdfFont
Package: dev.joid.lib.font.impl.glyph · Module: core · Source: GlyphFont.java
Base class of the fonts made of glyphs, which hold a FontFamily of faces.
Description
Section titled “Description”MsdfFont and BitmapFont extend it.
Extend it with your own IFontFace and GlyphTextRenderer for another kind of glyph font; getTextRenderer() must return a renderer that draws this class.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| GlyphFont(FontFamily | Creates the font from the family of its faces. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
F | getFace(FontWeight weight, boolean italic) | Returns the face that draws weight and italic, resolved by FontFamily.resolve. |
FontFamily<F> | getFamily() | Returns the family of faces of this font. |
Creation details
Section titled “Creation details”GlyphFont
Section titled “GlyphFont”GlyphFont(FontFamily<F> family) protected
Creates the font from the family of its faces.
Method details
Section titled “Method details”getFace
Section titled “getFace”F getFace(FontWeight weight, boolean italic)
Returns the face that draws weight and italic, resolved by FontFamily.resolve.
getFamily
Section titled “getFamily”FontFamily<F> getFamily()
Returns the family of faces of this font.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
