BitmapTextOption
BitmapTextOption =
boolean| {font?:string;size?:number; }
Defined in: renderer/src/public-types.ts:63
Opt into bitmap-font text rendering instead of canvas-rasterised Text.
Canvas text is bilinear-sampled by the GPU, so it goes blurry the moment
it’s drawn at a non-integer scale (camera zoom, pixel-art upscaling) on a
non-Retina display. A BitmapText draws pre-baked glyph quads instead, so
it stays crisp.
true— generate a dynamic bitmap font from the text’s ownstyle(thefontFamily/fontSizeyou already passed). Zero-config escape hatch for pixel-art games.{ font }— render with an already installed / loaded bitmap font, selected by its registered name.sizeoverrides the glyph size.