MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetFontLanguageVariant

Method SetFontLanguageVariant

src/engine/client/text.cpp:1336–1347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

OnInitMethod · 0.80
HandleLanguageChangedMethod · 0.80

Calls 2

str_compFunction · 0.85
SetVariantFaceByNameMethod · 0.80

Tested by

no test coverage detected