(path_ptr: *const u8, size: f64)
| 812 | |
| 813 | #[no_mangle] |
| 814 | pub 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] |
| 820 | pub extern "C" fn bloom_unload_font(font_handle: f64) { |
nothing calls this directly
no test coverage detected