mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Add atlas texture size opportunistic limiter
This commit is contained in:
parent
3496bd5fa3
commit
31436cabfd
5 changed files with 131 additions and 48 deletions
|
|
@ -289,7 +289,7 @@ namespace Dalamud.Interface.GameFonts
|
|||
ImFontConfigPtr fontConfig = ImGuiNative.ImFontConfig_ImFontConfig();
|
||||
fontConfig.OversampleH = 1;
|
||||
fontConfig.OversampleV = 1;
|
||||
fontConfig.PixelSnapH = true;
|
||||
fontConfig.PixelSnapH = false;
|
||||
|
||||
var io = ImGui.GetIO();
|
||||
|
||||
|
|
@ -305,6 +305,7 @@ namespace Dalamud.Interface.GameFonts
|
|||
continue;
|
||||
|
||||
var font = io.Fonts.AddFontDefault(fontConfig);
|
||||
|
||||
this.fonts[style] = font;
|
||||
foreach (var glyph in fdt.Glyphs)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue