diff --git a/src/renderer/alphabet_types.hpp b/src/renderer/alphabet_types.hpp index a51de19d..6a4e71b7 100644 --- a/src/renderer/alphabet_types.hpp +++ b/src/renderer/alphabet_types.hpp @@ -9,7 +9,8 @@ namespace big CYRILLIC, KOREAN, JAPANESE, + TURKISH, LAST_ALPHABET_TYPE }; - NLOHMANN_JSON_SERIALIZE_ENUM(eAlphabetType, {{eAlphabetType::LATIN, "latin"}, {eAlphabetType::CHINESE, "chinese"}, {eAlphabetType::CYRILLIC, "cyrillic"}, {eAlphabetType::KOREAN, "korean"}, {eAlphabetType::JAPANESE, "japanese"}}) + NLOHMANN_JSON_SERIALIZE_ENUM(eAlphabetType, {{eAlphabetType::LATIN, "latin"}, {eAlphabetType::CHINESE, "chinese"}, {eAlphabetType::CYRILLIC, "cyrillic"}, {eAlphabetType::KOREAN, "korean"}, {eAlphabetType::JAPANESE, "japanese"}, {eAlphabetType::TURKISH, "turkish"}}) } diff --git a/src/renderer/font_mgr.cpp b/src/renderer/font_mgr.cpp index 67880225..23378da4 100644 --- a/src/renderer/font_mgr.cpp +++ b/src/renderer/font_mgr.cpp @@ -157,6 +157,18 @@ namespace big return &full_ranges[0]; } + const ImWchar* font_mgr::GetGlyphRangesTurkish() + { + static const ImWchar icons_ranges_Turkish[] = { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x011E, 0x011F, // G with breve + 0x0130, 0x0131, // dotted I + 0x015E, 0x015F, // S-cedilla + 0, + }; + return &icons_ranges_Turkish[0]; + } + const ImWchar* font_mgr::get_imgui_alphabet_type() { auto& io = ImGui::GetIO(); @@ -166,6 +178,7 @@ namespace big case eAlphabetType::CYRILLIC: return io.Fonts->GetGlyphRangesCyrillic(); case eAlphabetType::JAPANESE: return io.Fonts->GetGlyphRangesJapanese(); case eAlphabetType::KOREAN: return io.Fonts->GetGlyphRangesKorean(); + case eAlphabetType::TURKISH: return GetGlyphRangesTurkish(); default: case eAlphabetType::LATIN: return io.Fonts->GetGlyphRangesDefault(); diff --git a/src/renderer/font_mgr.hpp b/src/renderer/font_mgr.hpp index 7c342a24..0a95bb6f 100644 --- a/src/renderer/font_mgr.hpp +++ b/src/renderer/font_mgr.hpp @@ -35,6 +35,7 @@ namespace big file get_available_font_file_for_alphabet_type(); const ImWchar* GetGlyphRangesChineseSimplifiedOfficial(); + const ImWchar* GetGlyphRangesTurkish(); const ImWchar* get_imgui_alphabet_type(); }; }