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

@@ -116,14 +116,14 @@ style.FontSizeBase = 20.0f;
**Load default font:**
```cpp
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontDefault(); // Load embedded font (auto-selected).
```
```cpp
io.Fonts->AddFontDefaultVector(); // Load embedded scalable font.
```
```cpp
io.Fonts->AddFontDefaultBitmap(); // Load embedded bitmap font (legacy).
```
```cpp
io.Fonts->AddFontDefault(); // Load embedded font (legacy: auto-selected between the two above).
```
**Load .TTF/.OTF file with:**