mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-26 18:45:30 +08:00
Examples: reword a comment to not mention AddFontDefault() explicitly.
This commit is contained in:
+3
-3
@@ -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:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user