feat(api): make FreeType a toggleable option which is disabled by default (#254)
* deps(build): bump FreeType from 2.12.1 to 2.13.3 * fix(generator): add missing ImGuiFreeTypeBuilderFlags * feat(generator): add possibility to provide additional defines specifically for AST * feat(api): make FreeType optional and disabled by default FreeType renderer is still included in the final build. Its usage is toggleable and DISABLED by default.
This commit is contained in:
1 parent
887e3d9c85
commit
d252c145c5
15 files changed
+370
-10
No files matched your search
@@ -43,7 +43,11 @@ public class Main extends Application {
|
||||
* For more information read: https://github.com/ocornut/imgui/blob/33cdbe97b8fd233c6c12ca216e76398c2e89b0d8/docs/FONTS.md
|
||||
*/
|
||||
private void initFonts(final ImGuiIO io) {
|
||||
io.getFonts().addFontDefault(); // Add default font for latin glyphs
|
||||
// This enables FreeType font renderer, which is disabled by default.
|
||||
io.getFonts().setFreeTypeRenderer(true);
|
||||
|
||||
// Add default font for latin glyphs
|
||||
io.getFonts().addFontDefault();
|
||||
|
||||
// You can use the ImFontGlyphRangesBuilder helper to create glyph ranges based on text input.
|
||||
// For example: for a game where your script is known, if you can feed your entire script to it (using addText) and only build the characters the game needs.
|
||||
|
||||
Reference in new issue
Block a user