Add styling for footnote groups

This commit is contained in:
Bartłomiej Dach
2022-12-16 21:26:13 +01:00
parent 112613c2f0
commit 73a4310935
4 changed files with 91 additions and 0 deletions

View File

@ -40,6 +40,8 @@ namespace osu.Game.Graphics.Containers.Markdown
protected override void AddFootnoteLink(FootnoteLink footnoteLink) => AddDrawable(new OsuMarkdownFootnoteLink(footnoteLink));
protected override void AddFootnoteBacklink(FootnoteLink footnoteBacklink) => AddDrawable(new OsuMarkdownFootnoteBacklink(footnoteBacklink));
protected override SpriteText CreateEmphasisedSpriteText(bool bold, bool italic)
=> CreateSpriteText().With(t => t.Font = t.Font.With(weight: bold ? FontWeight.Bold : FontWeight.Regular, italics: italic));