[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

+1 -1
View File
@@ -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`.
@@ -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();