Optimize big font loading

This commit is contained in:
Loporrit
2024-11-18 00:36:19 +00:00
parent 3ab07737fa
commit 7075c43a49

View File

@@ -102,7 +102,8 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
{
e.OnPreBuild(tk => tk.AddDalamudAssetFont(Dalamud.DalamudAsset.NotoSansJpMedium, new()
{
SizePx = 35
SizePx = 35,
GlyphRanges = [0x20, 0x7E, 0]
}));
});
GameFont = _pluginInterface.UiBuilder.FontAtlas.NewGameFontHandle(new(GameFontFamilyAndSize.Axis12));