mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Overwrite all relevant information after loading scaled fonts
This commit is contained in:
parent
3c44a43601
commit
f53c0fb1e3
1 changed files with 2 additions and 0 deletions
|
|
@ -189,6 +189,8 @@ namespace Dalamud.Interface.GameFonts
|
||||||
font->FontSize /= fontScale;
|
font->FontSize /= fontScale;
|
||||||
font->Ascent /= fontScale;
|
font->Ascent /= fontScale;
|
||||||
font->Descent /= 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;
|
var glyphs = (ImFontGlyphReal*)font->Glyphs.Data;
|
||||||
for (int i = 0, i_ = font->Glyphs.Size; i < i_; i++)
|
for (int i = 0, i_ = font->Glyphs.Size; i < i_; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue