Skip to content

Commit

Permalink
doc: update info about FreeType usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR committed Aug 29, 2024
1 parent e822240 commit 473521e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ By default, Dear ImGui uses stb-truetype to render fonts. However, there is an o
To learn about the differences, visit the [imgui_freetype](https://github.com/ocornut/imgui/tree/256594575d95d56dda616c544c509740e74906b4/misc/freetype) page.

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

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

0 comments on commit 473521e

Please sign in to comment.