ui/richtext/RichTextSpear.cs

UI rich text panel class that styles matched words like 'Spear' or 'Spears'. It sets skew, font weight, color and an underline color for rendered rich text.

Reflection
using Sandbox;
using Sandbox.UI;

[RichTextPanel( @"\b[Ss]pears?\b" )]
public class RichTextSpear : RichTextBase
{
	public override float? SkewX => -4;
	public override int? FontWeight => 800;

	public override Color Color => new Color( 0.7f, 0.3f, 0.3f );

	public override bool Underline => true;
	//public override TextDecorationStyle? UnderlineStyle => TextDecorationStyle.Wavy;
	public override Color? UnderlineColor => Color.Red.WithAlpha( 0.5f );

}