Skip to content

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.

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.

ReturnsSignatureSummary
GlyphFont(FontFamily family) protectedCreates the font from the family of its faces.

ReturnsSignatureSummary
FgetFace(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.

GlyphFont(FontFamily<F> family) protected

Creates the font from the family of its faces.

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.


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

Report a problem with this page