Skip to content

Commit 473521e

Browse files
authored
doc: update info about FreeType usage
1 parent e822240 commit 473521e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ By default, Dear ImGui uses stb-truetype to render fonts. However, there is an o
337337
To learn about the differences, visit the [imgui_freetype](https://github.com/ocornut/imgui/tree/256594575d95d56dda616c544c509740e74906b4/misc/freetype) page.
338338

339339
This binding also supports the FreeType option.
340-
FreeType is statically pre-compiled into the library, meaning it is **enabled by default** and there is no option to disable it.
340+
FreeType is statically pre-compiled into the library, meaning it is **included by default**.
341+
To enable it use `ImFontAtlas#setFreeTypeRenderer(true)` method. This should be done before fonts atlas generation.
342+
https://github.com/SpaiR/imgui-java/blob/e822240115bb27ef0f399ccdf39613fb746f46be/example/src/main/java/Main.java#L46-L47
341343
Therefore, you can freely use `ImGuiFreeTypeBuilderFlags` in your font configuration.
342344

343345
If you prefer not to use the FreeType font renderer, you will need to build your own binaries and use them instead.

0 commit comments

Comments
 (0)