Add kerned text draw helper

This commit is contained in:
Soreepeong 2022-02-25 12:44:24 +09:00
parent 17c77e6bfd
commit 3026eb6fa8
3 changed files with 468 additions and 2 deletions

View file

@ -183,7 +183,7 @@ namespace Dalamud.Interface.GameFonts
{
var prevValue = this.fontUseCounter.GetValueOrDefault(style, 0);
var newValue = this.fontUseCounter[style] = prevValue + 1;
needRebuild = (prevValue == 0) != (newValue == 0);
needRebuild = (prevValue == 0) != (newValue == 0) && !this.fonts.ContainsKey(style);
}
if (needRebuild)