mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: automatically set current rasterizer density to viewport density. Effectively should fix most things on macOS.
# Conflicts: # imgui.cpp # imgui.h
This commit is contained in:
parent
ea756ede16
commit
5ee9845559
4 changed files with 38 additions and 28 deletions
|
|
@ -130,7 +130,7 @@ ImGui::PopFont();
|
|||
**For advanced options create a ImFontConfig structure and pass it to the AddFont() function (it will be copied internally):**
|
||||
```cpp
|
||||
ImFontConfig config;
|
||||
config.RasterizerDensity = 2.0f;
|
||||
config.OversampleH = 1.0f;
|
||||
ImFont* font = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, &config);
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue