MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / measureText

Function measureText

src/text/index.ts:23–25  ·  view source on GitHub ↗
(text: string, size: number)

Source from the content-addressed store, hash-verified

21}
22
23export function measureText(text: string, size: number): number {
24 return bloom_measure_text(text as any, size);
25}
26
27export function loadFont(path: string, size: number): Font {
28 const handle = bloom_load_font(path as any, size);

Callers 6

drawVirtualButtonFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90

Calls 1

bloom_measure_textFunction · 0.50

Tested by

no test coverage detected