Egui::RichText
Inherits Reference < Object
Constructors
Class methods
When no monospace stack is installed (Context#mono_fonts nil),
monospace runs draw in the SAME proportional font and inline
code stops reading as code — retint them weaker so the span
stays visible. Runs are immutable; this rebuilds the affected
ones (explicitly colored runs keep their color). No-op for
non-monospace runs.
Instance methods
Base bold for the whole string (headings): routes to the real bold variant face when one is installed.
Base italic for the whole string: routes to the real italic variant face when one is installed.
Parse inline markup into per-span runs over the base style:
**bold**, *italic*, ***both***, ~~strike~~, `code`
and [label](url) (hyperlink-colored + underlined). Unclosed
markers render literally; emphasis nests by recursion; code
spans are literal (no markup inside backticks); backslash
escapes the next marker character. #link_spans carries the
link ranges for the widget that laid the runs out.