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

Function bloom_measure_text

native/linux/src/lib.rs:808–811  ·  view source on GitHub ↗
(text_ptr: *const u8, size: f64)

Source from the content-addressed store, hash-verified

806
807#[no_mangle]
808pub extern "C" fn bloom_measure_text(text_ptr: *const u8, size: f64) -> f64 {
809 let text = str_from_header(text_ptr);
810 engine().text.measure_text(text, size as u32)
811}
812
813#[no_mangle]
814pub 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