From f2c58d7c36b185c3e9e0afa3aca481bdb5570afe Mon Sep 17 00:00:00 2001 From: polymonster Date: Thu, 21 Dec 2023 11:22:30 +0000 Subject: [PATCH] - add common, missed glyphs to core dev ui --- core/put/source/dev_ui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/put/source/dev_ui.cpp b/core/put/source/dev_ui.cpp index 797fac6e..d8c42e0f 100644 --- a/core/put/source/dev_ui.cpp +++ b/core/put/source/dev_ui.cpp @@ -60,11 +60,15 @@ namespace void create_texture_atlas(float pixel_size) { ImGuiIO& io = ImGui::GetIO(); + ImFontConfig config; + config.MergeMode = true; + const Str cousine_reg = pen::os_path_for_resource("data/fonts/cousine-regular.ttf"); io.Fonts->AddFontFromFileTTF(cousine_reg.c_str(), pixel_size); + + static const ImWchar ex_ranges[] = {0x2013, 0x2019, 0}; + io.Fonts->AddFontFromFileTTF(cousine_reg.c_str(), pixel_size, &config, ex_ranges); - ImFontConfig config; - config.MergeMode = true; static const ImWchar icon_ranges[] = {ICON_MIN_FA, ICON_MAX_FA, 0}; const Str font_awesome = pen::os_path_for_resource("data/fonts/fontawesome-webfont.ttf"); io.Fonts->AddFontFromFileTTF(font_awesome.c_str(), pixel_size, &config, icon_ranges);