From e53d30e5ca14c2ec597da9a73de566f522215f7b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 20 Jul 2021 03:09:17 +0200 Subject: [PATCH] propagate line height to bold and italic stash fonts --- MLEM.Extended/Font/GenericStashFont.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MLEM.Extended/Font/GenericStashFont.cs b/MLEM.Extended/Font/GenericStashFont.cs index bbe5579..f0cdc62 100644 --- a/MLEM.Extended/Font/GenericStashFont.cs +++ b/MLEM.Extended/Font/GenericStashFont.cs @@ -38,8 +38,8 @@ namespace MLEM.Extended.Font { public GenericStashFont(SpriteFontBase font, SpriteFontBase bold = null, SpriteFontBase italic = null, float? lineHeight = null) { this.Font = font; this.LineHeight = lineHeight ?? CalculateLineHeight(font); - this.Bold = bold != null ? new GenericStashFont(bold) : this; - this.Italic = italic != null ? new GenericStashFont(italic) : this; + this.Bold = bold != null ? new GenericStashFont(bold, null, null, lineHeight) : this; + this.Italic = italic != null ? new GenericStashFont(italic, null, null, lineHeight) : this; } ///