Fix font size problems

This commit is contained in:
Soreepeong 2022-04-07 10:40:50 +09:00
parent b7a1303829
commit a97fc42d1e
2 changed files with 104 additions and 89 deletions

View file

@ -177,6 +177,9 @@ namespace Dalamud.Interface.GameFonts
/// <param name="rebuildLookupTable">Whether to call target.BuildLookupTable().</param>
public static void UnscaleFont(ImFontPtr fontPtr, float fontScale, bool rebuildLookupTable = true)
{
if (fontScale == 1)
return;
unsafe
{
var font = fontPtr.NativePtr;