diff --git a/HellionChat/FontManager.cs b/HellionChat/FontManager.cs index f8bac37..c9e11b4 100644 --- a/HellionChat/FontManager.cs +++ b/HellionChat/FontManager.cs @@ -120,7 +120,16 @@ public class FontManager e => e.OnPreBuild( tk => { - var config = new SafeFontConfig {SizePt = Plugin.Config.GlobalFontV2.SizePt, GlyphRanges = Ranges}; + // v1.2.0 — Bei aktiver Hellion-Schrift (Exo 2 ist Variable-Font) + // wird die User-Schriftgröße aus FontSizeV2 als SizePt angewendet. + // Der Bestand-Pfad nutzt weiter GlobalFontV2.SizePt aus dem + // Custom-Font-Stack. Ohne diese Verzweigung war FontSizeV2 bei + // UseHellionFont=true wirkungslos, was 4K-User mit größerer + // Skalierung blockierte (Settings → Erscheinungsbild → Schriftarten). + var basePt = Plugin.Config.UseHellionFont + ? Plugin.Config.FontSizeV2 + : Plugin.Config.GlobalFontV2.SizePt; + var config = new SafeFontConfig {SizePt = basePt, GlyphRanges = Ranges}; config.MergeFont = Plugin.Config.UseHellionFont ? tk.AddFontFromMemory(GetHellionFontBytes(), config, "Hellion-Exo2") : AddFontWithFallback(tk, Plugin.Config.GlobalFontV2.FontId, config, "global"); diff --git a/HellionChat/Ui/SettingsTabs/Appearance.cs b/HellionChat/Ui/SettingsTabs/Appearance.cs index ba07ee3..031ab0b 100644 --- a/HellionChat/Ui/SettingsTabs/Appearance.cs +++ b/HellionChat/Ui/SettingsTabs/Appearance.cs @@ -109,7 +109,22 @@ internal sealed class Appearance : ISettingsTab ImGuiUtil.HelpMarker(HellionStrings.Theme_UseHellionFont_Description); ImGui.Spacing(); - using var fontDisabled = ImRaii.Disabled(Mutable.UseHellionFont); + // v1.2.0 — Schriftgröße muss auch bei aktiver Hellion-Schrift + // editierbar sein (Exo 2 ist Variable-Font, FontSizeV2 wird in + // FontManager als SizePt angewendet). Disabled-Wrap nur noch + // um den Bestand-Custom-Font-Stack (FontsEnabled-Toggle und + // die Font-Chooser) — der ist weiter exclusive zu HellionFont. + if (Mutable.UseHellionFont) + { + ImGuiUtil.FontSizeCombo(Language.Options_FontSize_Name, ref Mutable.FontSizeV2); + ImGui.Spacing(); + + ImGuiUtil.FontSizeCombo(Language.Options_SymbolsFontSize_Name, ref Mutable.SymbolsFontSizeV2); + ImGuiUtil.HelpMarker(Language.Options_SymbolsFontSize_Description); + + ImGui.Spacing(); + return; + } ImGui.Checkbox(Language.Options_FontsEnabled, ref Mutable.FontsEnabled); ImGui.Spacing();