(path_ptr: *const u8, size: f64)
| 438 | |
| 439 | #[no_mangle] |
| 440 | pub extern "C" fn bloom_load_font(path_ptr: *const u8, size: f64) -> f64 { |
| 441 | let path = str_from_header(path_ptr); |
| 442 | match std::fs::read(resolve_path(path)) { Ok(data) => engine().text.load_font(&data) as f64, Err(_) => 0.0 } |
| 443 | } |
| 444 | |
| 445 | #[no_mangle] |
| 446 | pub extern "C" fn bloom_unload_font(font_handle: f64) { |
nothing calls this directly
no test coverage detected