MsdfTextRenderer
final class MsdfTextRenderer
Extends: GlyphTextRenderer<MsdfFontFace>
Package: dev.joid.lib.font.impl.msdf · Module: core · Source: MsdfTextRenderer.java
The text renderer of every MsdfFont, which draws each glyph from the distance field of its face.
Description
Section titled “Description”You never call it yourself: MsdfFont.getTextRenderer returns it to DrawText.
It draws each glyph as a quad of the atlas through the font shader of JOID; the baseline snaps to the pixel grid so that a line keeps the same sharpness wherever it sits.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
MsdfTextRenderer | inst() factory | Returns the shared renderer. |
Methods
Section titled “Methods”Inherited from GlyphTextRenderer (6)
getWidth · getHeight · drawText · getLineHeight · getBaseline · layout
Creation details
Section titled “Creation details”MsdfTextRenderer inst() factory
Returns the shared renderer.
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
