* If there is a localized font for this language, return that. * Returns undefined if there is no localized font for that language.
(language)
| 27606 | * If there is a localized font for this language, return that. |
| 27607 | * Returns undefined if there is no localized font for that language. |
| 27608 | */ function _getLocalizedFontFamily(language) { |
| 27609 | for(var lang in LanguageToFontMap){ |
| 27610 | if (LanguageToFontMap.hasOwnProperty(lang) && language && lang.indexOf(language) === 0) // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 27611 | return LanguageToFontMap[lang]; |
| 27612 | } |
| 27613 | return defaultFontFamily; |
| 27614 | } |
| 27615 | function _createFont(size, weight, fontFamily) { |
| 27616 | return { |
| 27617 | fontFamily: fontFamily, |