From 13f01d6643a64884c6b96dfe724fcecd6e67abed Mon Sep 17 00:00:00 2001 From: SpaiR Date: Sat, 17 Oct 2020 14:23:42 +0300 Subject: [PATCH] [Example] Remove usage of ImGuiFreeType --- README.md | 2 +- imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 6ee7490..04a0000 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ Take a note that multi-viewports api is **VERY** complex to implement. It's high Otherwise, if you're using your own backed implementation, there are no guarantees it will work. ## Using FreeType -Dear ImGui by default uses a stb_strutype library to render a fonts atlas. It's possible to use FreeType instead to get better fonts quality. See an example in [ImGuiGlfwExample](https://github.com/spair/imgui-java/blob/v1.78-1.3.0/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java). [Read more](https://github.com/ocornut/imgui/blob/v1.78/misc/freetype/README.md) +Dear ImGui by default uses a stb_strutype library to render a fonts atlas. It's possible to use FreeType instead to get better fonts quality. [Read more](https://github.com/ocornut/imgui/blob/v1.78/misc/freetype/README.md) ## Binding Notice * All Dear ImGui methods are available in `camelCase`, not in `PascalCase`. diff --git a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java index e4394e4..8e7bff7 100644 --- a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java +++ b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java @@ -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();