|
@@ -6,7 +6,9 @@
|
|
|
#ifndef IMGUI_DISABLE
|
|
|
|
|
|
// Usage:
|
|
|
-// - Add '#define IMGUI_ENABLE_FREETYPE' in your imconfig to enable support for imgui_freetype in imgui.
|
|
|
+// - Add '#define IMGUI_ENABLE_FREETYPE' in your imconfig to automatically enable support
|
|
|
+// for imgui_freetype in imgui. It is equivalent to selecting the default loader with:
|
|
|
+// io.Fonts.FontLoader = ImGuiFreeType::GetFontLoader()
|
|
|
|
|
|
// Optional support for OpenType SVG fonts:
|
|
|
// - Add '#define IMGUI_ENABLE_FREETYPE_PLUTOSVG' to use plutosvg (not provided). See #7927.
|
|
@@ -52,8 +54,9 @@ namespace ImGuiFreeType
|
|
|
// Display UI to edit FontBuilderFlags in ImFontAtlas (shared) or ImFontConfig (single source)
|
|
|
IMGUI_API bool DebugEditFontBuilderFlags(unsigned int* p_font_loader_flags);
|
|
|
|
|
|
- // Obsolete names (will be removed soon)
|
|
|
+ // Obsolete names (will be removed)
|
|
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
|
+ //IMGUI_API const ImFontBuilderIO* GetBuilderForFreeType(); // Renamed/changed in 1.92. Change 'io.Fonts->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()' to 'io.Fonts.FontLoader = ImGuiFreeType::GetFontLoader()' if you need runtime selection.
|
|
|
//static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } // Prefer using '#define IMGUI_ENABLE_FREETYPE'
|
|
|
#endif
|
|
|
}
|