From a42286b5430a67a9c5e12a369986984ce82b3d61 Mon Sep 17 00:00:00 2001 From: Andreas Maerten <24669514+Yimura@users.noreply.github.com> Date: Thu, 4 Apr 2024 20:34:43 +0200 Subject: [PATCH] feat(FontMgr): expand Turkish glyph range (#2915) --- src/renderer/font_mgr.cpp | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/renderer/font_mgr.cpp b/src/renderer/font_mgr.cpp index 23378da4..21bc0098 100644 --- a/src/renderer/font_mgr.cpp +++ b/src/renderer/font_mgr.cpp @@ -14,6 +14,7 @@ namespace big {eAlphabetType::CYRILLIC, {"msyh.ttc", "msyh.ttf", "arial.ttf"}}, {eAlphabetType::JAPANESE, {"msyh.ttc", "msyh.ttf", "arial.ttf"}}, {eAlphabetType::KOREAN, {"malgun.ttf", "arial.ttf"}}, + {eAlphabetType::TURKISH, {"msyh.ttc", "msyh.ttf", "arial.ttf"}}, }) { } @@ -99,9 +100,8 @@ namespace big void font_mgr::update_required_alphabet_type(eAlphabetType type) { m_require_extra = type; - - g_thread_pool->push([this] - { + + g_thread_pool->push([this] { rebuild(); }); } @@ -160,10 +160,32 @@ namespace big 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 + 0x0020, + 0x00FF, // Basic Latin + Latin Supplement + 0x00c7, + 0x00c7, // Ç + 0x00e7, + 0x00e7, // ç + 0x011e, + 0x011e, // Ğ + 0x011f, + 0x011f, // ğ + 0x0130, + 0x0130, // İ + 0x0131, + 0x0131, // ı + 0x00d6, + 0x00d6, // Ö + 0x00f6, + 0x00f6, // ö + 0x015e, + 0x015e, // Ş + 0x015f, + 0x015f, // ş + 0x00dc, + 0x00dc, // Ü + 0x00fc, + 0x00fc, // ü 0, }; return &icons_ranges_Turkish[0];