MsdfFont
final class MsdfFont
Extends: GlyphFont<MsdfFontFace>
Package: dev.joid.lib.font.impl.msdf · Module: core · Source: MsdfFont.java
A font drawn from multi-channel signed distance fields, sharp at every size, with one face per weight and style.
Description
Section titled “Description”MsdfFontLoader creates it; pass it to TextInfo.create.
Its glyphs are drawn by MsdfTextRenderer.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
MsdfFont | of(MsdfFontFace… faces) factory | Creates a font from faces that are already read. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ITextRenderer | getTextRenderer() | Returns MsdfTextRenderer.inst. |
Creation details
Section titled “Creation details”MsdfFont of(MsdfFontFace... faces) factory
Creates a font from faces that are already read.
Throws IllegalArgumentException when no face is given or when two faces share a weight and a style.
Method details
Section titled “Method details”getTextRenderer
Section titled “getTextRenderer”ITextRenderer getTextRenderer()
Returns MsdfTextRenderer.inst.
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
