add doom font
This commit is contained in:
BIN
assets/fonts/doom.ttf
Normal file
BIN
assets/fonts/doom.ttf
Normal file
Binary file not shown.
@@ -57,11 +57,16 @@ void ImGuiAppComponent::SetStyle() {
|
|||||||
ImGui::GetStyle().Colors[ImGuiCol_HeaderHovered] = colorTabActive;
|
ImGui::GetStyle().Colors[ImGuiCol_HeaderHovered] = colorTabActive;
|
||||||
ImGui::GetStyle().Colors[ImGuiCol_Header] = colorTabActive;
|
ImGui::GetStyle().Colors[ImGuiCol_Header] = colorTabActive;
|
||||||
|
|
||||||
/*ImFontConfig c;
|
static const float DefaultFontSize = 25.0f;
|
||||||
c.SizePixels = 25.0f;
|
|
||||||
|
ImFontConfig c;
|
||||||
|
c.SizePixels = DefaultFontSize;
|
||||||
|
c.OversampleH = 1; // prevent from blurring font
|
||||||
|
|
||||||
ImGui::GetIO().Fonts->AddFontDefault(&c);
|
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();
|
UpdateFontTexture();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user