Fonts: AddFont() actually does the work, so we can handle errors & return an accurate return value.

This commit is contained in:
ocornut
2025-06-11 15:41:21 +02:00
committed by ocornut
parent 1269467fa0
commit 0f553c57bd
2 changed files with 39 additions and 13 deletions
+1
View File
@@ -3529,6 +3529,7 @@ struct ImFontAtlas
IMGUI_API void Clear(); // Clear all input and output.
IMGUI_API void ClearCache(); // Clear cached glyphs
IMGUI_API void BuildInit();
// Build atlas, retrieve pixel data.
// User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID().