| 1334 | } |
| 1335 | |
| 1336 | void SetFontLanguageVariant(const char *pLanguageFile) override |
| 1337 | { |
| 1338 | for(const auto &Variant : m_vVariants) |
| 1339 | { |
| 1340 | if(str_comp(pLanguageFile, Variant.m_aLanguageFile) == 0) |
| 1341 | { |
| 1342 | m_pGlyphMap->SetVariantFaceByName(Variant.m_aFamilyName); |
| 1343 | return; |
| 1344 | } |
| 1345 | } |
| 1346 | m_pGlyphMap->SetVariantFaceByName(nullptr); |
| 1347 | } |
| 1348 | |
| 1349 | void Text(float x, float y, float FontSize, const char *pText, float LineWidth = -1.0f) override |
| 1350 | { |
no test coverage detected