Skip to content

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.

MsdfFontLoader creates it; pass it to TextInfo.create. Its glyphs are drawn by MsdfTextRenderer.

ReturnsSignatureSummary
MsdfFontof(MsdfFontFace… faces) factoryCreates a font from faces that are already read.

ReturnsSignatureSummary
ITextRenderergetTextRenderer()Returns MsdfTextRenderer.inst.
Inherited from GlyphFont (2)

getFace · getFamily

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.

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

Report a problem with this page