Examples: reword a comment to not mention AddFontDefault() explicitly.

This commit is contained in:
ocornut
2026-02-12 18:36:22 +01:00
parent 42f28ba305
commit 9c33672e5c
31 changed files with 33 additions and 33 deletions

View File

@@ -93,7 +93,7 @@ int main(int, char**)
ImGui_ImplWGPU_Init(&init_info);
// Load Fonts
// - If fonts are not explicitly loaded, Dear ImGui will call AddFontDefault() to select an embedded font: either AddFontDefaultVector() or AddFontDefaultBitmap().
// - If fonts are not explicitly loaded, Dear ImGui will select an embedded font: either AddFontDefaultVector() or AddFontDefaultBitmap().
// This selection is based on (style.FontSizeBase * style.FontScaleMain * style.FontScaleDpi) reaching a small threshold.
// - You can load multiple fonts and use ImGui::PushFont()/PopFont() to select them.
// - If a file cannot be loaded, AddFont functions will return a nullptr. Please handle those errors in your code (e.g. use an assertion, display an error and quit).