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

Function bloom_measure_text

native/android/src/lib.rs:434–437  ·  view source on GitHub ↗
(text_ptr: *const u8, size: f64)

Source from the content-addressed store, hash-verified

432
433#[no_mangle]
434pub extern "C" fn bloom_measure_text(text_ptr: *const u8, size: f64) -> f64 {
435 let text = str_from_header(text_ptr);
436 engine().text.measure_text(text, size as u32)
437}
438
439#[no_mangle]
440pub extern "C" fn bloom_load_font(path_ptr: *const u8, size: f64) -> f64 {

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
measure_textMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected