From 473521edba8225054da73f54a30a750566bdb6c0 Mon Sep 17 00:00:00 2001 From: SpaiR Date: Thu, 29 Aug 2024 11:27:35 +0300 Subject: [PATCH] doc: update info about FreeType usage --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e6a759..51a3c29 100644 --- a/README.md +++ b/README.md @@ -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.