mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 04:53:29 +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) {
|
public GenericStashFont(SpriteFontBase font, SpriteFontBase bold = null, SpriteFontBase italic = null, float? lineHeight = null) {
|
||||||
this.Font = font;
|
this.Font = font;
|
||||||
this.LineHeight = lineHeight ?? CalculateLineHeight(font);
|
this.LineHeight = lineHeight ?? CalculateLineHeight(font);
|
||||||
this.Bold = bold != null ? new GenericStashFont(bold) : this;
|
this.Bold = bold != null ? new GenericStashFont(bold, null, null, lineHeight) : this;
|
||||||
this.Italic = italic != null ? new GenericStashFont(italic) : this;
|
this.Italic = italic != null ? new GenericStashFont(italic, null, null, lineHeight) : this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
Loading…
Reference in a new issue