Skip to content

Commit 13f01d6

Browse files
committed
[Example] Remove usage of ImGuiFreeType
1 parent 06322ac commit 13f01d6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Take a note that multi-viewports api is **VERY** complex to implement. It's high
241241
Otherwise, if you're using your own backed implementation, there are no guarantees it will work.
242242

243243
## Using FreeType
244-
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)
244+
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)
245245

246246
## Binding Notice
247247
* All Dear ImGui methods are available in `camelCase`, not in `PascalCase`.

imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import imgui.ImFontAtlas;
1111
import imgui.ImFontConfig;
1212
import imgui.ImGui;
13-
import imgui.ImGuiFreeType;
1413
import imgui.ImGuiIO;
1514
import imgui.ImGuiStyle;
1615
import imgui.flag.ImGuiCol;
@@ -184,10 +183,6 @@ private void setupImGui() {
184183

185184
fontConfig.destroy(); // After all fonts were added we don't need this config more
186185

187-
// ------------------------------------------------------------
188-
// Use freetype instead of stb_truetype to build a fonts texture
189-
ImGuiFreeType.buildFontAtlas(fontAtlas, ImGuiFreeType.RasterizerFlags.LightHinting);
190-
191186
// When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones.
192187
if (io.hasConfigFlags(ImGuiConfigFlags.ViewportsEnable)) {
193188
final ImGuiStyle style = ImGui.getStyle();

0 commit comments

Comments
 (0)