mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
change font weight for bold text
This commit is contained in:
@ -26,5 +26,12 @@ namespace osu.Game.Graphics.Containers.Markdown
|
|||||||
// TODO : Add background (colour B6) and change font to monospace
|
// TODO : Add background (colour B6) and change font to monospace
|
||||||
protected override void AddCodeInLine(CodeInline codeInline)
|
protected override void AddCodeInLine(CodeInline codeInline)
|
||||||
=> AddText(codeInline.Content, t => { t.Colour = colourProvider.Light1; });
|
=> 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user