diff --git a/assets/fonts/doom.ttf b/assets/fonts/doom.ttf new file mode 100644 index 0000000..73d96be Binary files /dev/null and b/assets/fonts/doom.ttf differ diff --git a/src/client/ImGuiAppComponent.cpp b/src/client/ImGuiAppComponent.cpp index cc0e674..de81da2 100644 --- a/src/client/ImGuiAppComponent.cpp +++ b/src/client/ImGuiAppComponent.cpp @@ -57,11 +57,16 @@ void ImGuiAppComponent::SetStyle() { ImGui::GetStyle().Colors[ImGuiCol_HeaderHovered] = colorTabActive; ImGui::GetStyle().Colors[ImGuiCol_Header] = colorTabActive; - /*ImFontConfig c; - c.SizePixels = 25.0f; + static const float DefaultFontSize = 25.0f; + + ImFontConfig c; + c.SizePixels = DefaultFontSize; + c.OversampleH = 1; // prevent from blurring font + ImGui::GetIO().Fonts->AddFontDefault(&c); - auto* doomFont = ImGui::GetIO().Fonts->AddFontFromFileTTF("assets/fonts/doom.ttf", 25.0f, &c); - ImGui::GetIO().FontDefault = doomFont;*/ + + auto* doomFont = ImGui::GetIO().Fonts->AddFontFromFileTTF("assets/fonts/doom.ttf", DefaultFontSize, &c); + ImGui::GetIO().FontDefault = doomFont; UpdateFontTexture(); }