1
0
mirror of synced 2024-12-01 10:47:19 +01:00

feat: Allow OTF fonts to be selected

This commit is contained in:
WerWolv 2023-01-12 11:37:19 +01:00
parent 0d91db68db
commit 1f6acc101f

View File

@ -400,7 +400,7 @@ namespace hex::plugin::builtin {
ImGui::SameLine();
if (ImGui::IconButton(ICON_VS_FOLDER_OPENED, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
return fs::openFileBrowser(fs::DialogMode::Open, { {"TTF Font", "ttf"} },
return fs::openFileBrowser(fs::DialogMode::Open, { { "TTF Font", "ttf" }, { "OTF Font", "otf" } },
[&](const std::fs::path &path) {
fontPath = hex::toUTF8String(path);
setting = fontPath;