doc: update info about FreeType usage
This commit is contained in:
1 parent
e822240115
commit
473521edba
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user