Returns a unique key string for this asset (the path or file name).
(&self)
| 98 | impl FontAsset { |
| 99 | /// Returns a unique key string for this asset (the path or file name). |
| 100 | pub fn key(&self) -> &'static str { |
| 101 | match self { |
| 102 | FontAsset::Path(path) => path, |
| 103 | FontAsset::Bytes { file_name, .. } => file_name, |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /// Global FontManager. Manages font loading, caching, and eviction. |
no outgoing calls
no test coverage detected