1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-16 22:28:46 +02:00

propagate line height to bold and italic stash fonts

This commit is contained in:
Ell 2021-07-20 03:09:17 +02:00
parent ebc6ec872b
commit e53d30e5ca

View file

@ -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;
}
/// <inheritdoc />