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

Function bloom_load_font_bytes

native/web/src/lib.rs:578–580  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

576/// Load a font from raw bytes (fetched by JS glue via fetch()).
577#[wasm_bindgen]
578pub fn bloom_load_font_bytes(data: &[u8]) -> f64 {
579 engine().text.load_font(data) as f64
580}
581
582#[wasm_bindgen]
583pub fn bloom_unload_font(font_handle: f64) {

Callers

nothing calls this directly

Calls 2

load_fontMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected