[Example] Remove usage of ImGuiFreeType

This commit is contained in:
SpaiR committed 2020-10-17 14:23:42 +03:00
1 parent 06322ac726
commit 13f01d6643
2 files changed
+1 -6

No files matched your search

@@ -10,7 +10,6 @@ import static org.lwjgl.system.MemoryUtil.NULL;
import imgui.ImFontAtlas;
import imgui.ImFontConfig;
import imgui.ImGui;
import imgui.ImGuiFreeType;
import imgui.ImGuiIO;
import imgui.ImGuiStyle;
import imgui.flag.ImGuiCol;
@@ -184,10 +183,6 @@ public final class ImGuiGlfwExample {
fontConfig.destroy(); // After all fonts were added we don't need this config more
// ------------------------------------------------------------
// Use freetype instead of stb_truetype to build a fonts texture
ImGuiFreeType.buildFontAtlas(fontAtlas, ImGuiFreeType.RasterizerFlags.LightHinting);
// When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones.
if (io.hasConfigFlags(ImGuiConfigFlags.ViewportsEnable)) {
final ImGuiStyle style = ImGui.getStyle();