Make italic font chooseable

This commit is contained in:
Infi
2024-07-25 15:19:08 +02:00
parent 9c86ee788f
commit 41c59f6aa0
6 changed files with 90 additions and 22 deletions
+10 -1
View File
@@ -85,7 +85,8 @@ internal class Configuration : IPluginConfiguration
public float SymbolsFontSizeV2 = 12.75f;
public SingleFontSpec GlobalFontV2 = new()
{
FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansKrRegular), // dalamud only ships KR as regular, which chat2 used previously for global fonts
// dalamud only ships KR as regular, which chat2 used previously for global fonts
FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansKrRegular),
SizePt = 12.75f,
};
public SingleFontSpec JapaneseFontV2 = new()
@@ -93,6 +94,12 @@ internal class Configuration : IPluginConfiguration
FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansJpMedium),
SizePt = 12.75f,
};
public bool ItalicEnabled = false;
public SingleFontSpec ItalicFontV2 = new()
{
FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansKrRegular),
SizePt = 12.75f,
};
// TODO Remove after 24.08
public float FontSize = 17f;
@@ -159,10 +166,12 @@ internal class Configuration : IPluginConfiguration
ShowEmotes = other.ShowEmotes;
BlockedEmotes = other.BlockedEmotes;
FontsEnabled = other.FontsEnabled;
ItalicEnabled = other.ItalicEnabled;
ExtraGlyphRanges = other.ExtraGlyphRanges;
FontSizeV2 = other.FontSizeV2;
GlobalFontV2 = other.GlobalFontV2;
JapaneseFontV2 = other.JapaneseFontV2;
ItalicFontV2 = other.ItalicFontV2;
SymbolsFontSizeV2 = other.SymbolsFontSizeV2;
TooltipOffset = other.TooltipOffset;
WindowAlpha = other.WindowAlpha;