(path_ptr: *const u8, _size: f64)
| 862 | |
| 863 | #[no_mangle] |
| 864 | pub extern "C" fn bloom_load_font(path_ptr: *const u8, _size: f64) -> f64 { |
| 865 | let path = str_from_header(path_ptr); |
| 866 | match std::fs::read(path) { |
| 867 | Ok(data) => engine().text.load_font(&data) as f64, |
| 868 | Err(_) => 0.0, |
| 869 | } |
| 870 | } |
| 871 | |
| 872 | #[no_mangle] |
| 873 | pub extern "C" fn bloom_unload_font(font_handle: f64) { |
nothing calls this directly
no test coverage detected