(path_ptr: *const u8, _size: f64)
| 875 | |
| 876 | #[no_mangle] |
| 877 | pub extern "C" fn bloom_load_font(path_ptr: *const u8, _size: f64) -> f64 { |
| 878 | let path = str_from_header(path_ptr); |
| 879 | match std::fs::read(resolve_path(path)) { Ok(data) => engine().text.load_font(&data) as f64, Err(_) => 0.0 } |
| 880 | } |
| 881 | |
| 882 | #[no_mangle] |
| 883 | pub extern "C" fn bloom_unload_font(font_handle: f64) { |
no test coverage detected