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

Function bloom_load_font

native/macos/src/lib.rs:864–870  ·  view source on GitHub ↗
(path_ptr: *const u8, _size: f64)

Source from the content-addressed store, hash-verified

862
863#[no_mangle]
864pub extern "C" fn bloom_load_font(path_ptr: *const u8, _size: f64) -> f64 {
865 let path = str_from_header(path_ptr);
866 match std::fs::read(path) {
867 Ok(data) => engine().text.load_font(&data) as f64,
868 Err(_) => 0.0,
869 }
870}
871
872#[no_mangle]
873pub extern "C" fn bloom_unload_font(font_handle: f64) {

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
load_fontMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected