mirror of
https://github.com/ppy/osu
synced 2025-03-01 17:11:12 +00:00
change font weight for bold text
This commit is contained in:
parent
356b1e9a2d
commit
bfc328c5ab
@ -26,5 +26,12 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
// TODO : Add background (colour B6) and change font to monospace
|
||||
protected override void AddCodeInLine(CodeInline codeInline)
|
||||
=> AddText(codeInline.Content, t => { t.Colour = colourProvider.Light1; });
|
||||
|
||||
protected override SpriteText CreateEmphasisedSpriteText(bool bold, bool italic)
|
||||
{
|
||||
var spriteText = CreateSpriteText();
|
||||
spriteText.Font = spriteText.Font.With(weight: bold ? FontWeight.Bold : FontWeight.Regular, italics: italic);
|
||||
return spriteText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user