Skip to main content

Interface: TextRenderables

Defined in: text/rendering/create-text-renderable.ts:29

The pair of Renderables a FontAtlas's glyphs draw with - see createTextRenderable's doc comment for why glyph rendering is split into two ordered draw passes instead of one.

Properties​

effectsRenderable​

effectsRenderable: Renderable

Defined in: text/rendering/create-text-renderable.ts:45

Draws only a glyph's outline ring and soft shadow/glow (msdf-effects.frag), with no fill layer. Only pushed for glyphs that actually have an outline/shadow configured (see pushTextRenderCommands).


fillRenderable​

fillRenderable: Renderable

Defined in: text/rendering/create-text-renderable.ts:37

Draws only a glyph's own anti-aliased ink (msdf-fill.frag), using the plain sprite vertex layout - no outline/shadow instance data. Always drawn after effectsRenderable for the same glyphs (see pushTextRenderCommands in glyph-quad.ts), so a glyph's fill can never be painted over by a neighboring glyph's outline/shadow.