Skip to content

Commit

Permalink
expand font path (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfly authored May 4, 2024
1 parent aeab005 commit 215db5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ static int gui_thread() {
io.Fonts->AddFontDefault(&font_cfg);
} else {
const ImWchar* unicodeRanges = buildGlyphRanges();
io.Fonts->AddFontFromFileTTF(config.fontPath.c_str(), 0, &font_cfg, unicodeRanges);
auto fontPath = mp_expand_path(config.fontPath.c_str());
io.Fonts->AddFontFromFileTTF(fontPath.c_str(), 0, &font_cfg, unicodeRanges);
}

ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
Expand Down

0 comments on commit 215db5f

Please sign in to comment.