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

Function bloom_load_font

native/linux/src/lib.rs:814–817  ·  view source on GitHub ↗
(path_ptr: *const u8, size: f64)

Source from the content-addressed store, hash-verified

812
813#[no_mangle]
814pub extern "C" fn bloom_load_font(path_ptr: *const u8, size: f64) -> f64 {
815 let path = str_from_header(path_ptr);
816 match std::fs::read(path) { Ok(data) => engine().text.load_font(&data) as f64, Err(_) => 0.0 }
817}
818
819#[no_mangle]
820pub 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