Skip to content

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.

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.

ReturnsSignatureSummary
MsdfTextRendererinst() factoryReturns the shared renderer.

Inherited from GlyphTextRenderer (6)

getWidth · getHeight · drawText · getLineHeight · getBaseline · layout

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

Report a problem with this page