On Android, the APK asset root is the `assets/` directory, so paths like `"assets/fonts/x.ttf"` need the prefix stripped.
(path: &str)
| 14 | /// On Android, the APK asset root is the `assets/` directory, |
| 15 | /// so paths like `"assets/fonts/x.ttf"` need the prefix stripped. |
| 16 | fn resolve_asset_path(path: &str) -> &str { |
| 17 | #[cfg(target_os = "android")] |
| 18 | if let Some(stripped) = path.strip_prefix("assets/") { |
| 19 | return stripped; |
| 20 | } |
| 21 | path |
| 22 | } |
| 23 | |
| 24 | #[cfg(feature = "text-styling")] |
| 25 | static ANIMATION_TRACKER: std::sync::LazyLock<std::sync::Mutex<FxHashMap<String, (usize, f64)>>> = std::sync::LazyLock::new(|| std::sync::Mutex::new(FxHashMap::default())); |
no outgoing calls
no test coverage detected