Documentation / scene / generateMSDF
Function: generateMSDF()
generateMSDF(
glyph,options):MSDFBitmap
Defined in: libs/scene/src/text/msdf/generator.ts:25
Generate a runtime RGB(A) distance field bitmap from a parsed glyph.
Distances are encoded in output texel units, which matches the shader-side distanceRange logic and keeps the field scale-invariant across font sizes.