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

Function bloom_measure_text_ex

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

Source from the content-addressed store, hash-verified

832
833#[no_mangle]
834pub extern "C" fn bloom_measure_text_ex(font_handle: f64, text_ptr: *const u8, size: f64, spacing: f64) -> f64 {
835 let text = str_from_header(text_ptr);
836 engine().text.measure_text_ex(font_handle as usize, text, size as u32, spacing as f32)
837}
838
839static AUDIO_RUNNING: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);
840

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
measure_text_exMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected