(fontFamily: string, font: Font)
| 53 | } |
| 54 | |
| 55 | function computeFontCacheKey(fontFamily: string, font: Font) { |
| 56 | const sep = ':'; |
| 57 | return [fontFamily, String(FontVariationSettings.toString(font.fontVariationSettings)).replace(/'/g, '').replace(/[\s,]/g, '_')].join(sep); |
| 58 | } |
| 59 | |
| 60 | function loadFontFromFile(fontFamily: string, font: Font): android.graphics.Typeface { |
| 61 | const cacheKey = SDK_VERSION >= 26 ? computeFontCacheKey(fontFamily, font) : fontFamily; |
no test coverage detected