mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-24 17:29:23 +01:00
propagate line height to bold and italic stash fonts
This commit is contained in:
parent
ebc6ec872b
commit
e53d30e5ca
1 changed files with 2 additions and 2 deletions
|
@ -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 />
|
||||
|
|
Loading…
Reference in a new issue