API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classBmFontAdapter

@codexo/exojs / rendering / stable

Adapts BmFontData to the GlyphProvider interface consumed by layoutText. - `getGlyph()` maps BMFont metrics to GlyphInfo using bearings that place each glyph correctly relative to its line's Y origin. - `getKerning()` looks up the BMFont kerning table.

0
props
2
methods
0
events
Import
import { BmFontAdapter } from '@codexo/exojs'

Adapts BmFontData to the GlyphProvider interface consumed by layoutText.

- `getGlyph()` maps BMFont metrics to GlyphInfo using bearings that place each glyph correctly relative to its line's Y origin. - `getKerning()` looks up the BMFont kerning table.

Constructors1
Methods2
Return metrics for the given character at the given font size.
getKerning(prev: string, next: string, _fontSize: number): number
Return the kerning adjustment (in pixels) between two adjacent characters. Positive values add space; negative values pull glyphs together. Optional - callers treat a missing method as zero kerning.
Source