Skip to content

Commit

Permalink
- add common, missed glyphs to core dev ui
Browse files Browse the repository at this point in the history
  • Loading branch information
polymonster committed Dec 21, 2023
1 parent 1295426 commit f2c58d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/put/source/dev_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2c58d7

Please sign in to comment.