Skip to content

Commit

Permalink
Load font variant for Turkish
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jul 13, 2024
1 parent 8108f23 commit 27206cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/engine/render/text_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ OptionalClxSpriteList LoadFont(GameFontTables size, text_color color, uint16_t r
// Try loading the language-specific variant first:
const std::string_view language_code = GetLanguageCode();
const std::string_view language_tag = language_code.substr(0, 2);
if (language_tag == "zh" || language_tag == "ja" || language_tag == "ko") {
if (language_tag == "zh" || language_tag == "ja" || language_tag == "ko"
|| (language_tag == "tr" && row == 0)) {
GetFontPath(language_code, size, row, ".clx", &path[0]);
font = LoadOptionalClx(path);
}
Expand Down

0 comments on commit 27206cd

Please sign in to comment.