Overwrite all relevant information after loading scaled fonts

This commit is contained in:
Soreepeong 2022-04-15 23:05:33 +09:00
parent 3c44a43601
commit f53c0fb1e3

View file

@ -189,6 +189,8 @@ namespace Dalamud.Interface.GameFonts
font->FontSize /= fontScale;
font->Ascent /= fontScale;
font->Descent /= fontScale;
for (int i = 0, i_ = font->ConfigDataCount; i < i_; i++)
font->ConfigData[i].SizePixels /= fontScale;
var glyphs = (ImFontGlyphReal*)font->Glyphs.Data;
for (int i = 0, i_ = font->Glyphs.Size; i < i_; i++)
{