Struct egui::RichText [−][src]
pub struct RichText { /* fields omitted */ }
Expand description
Text and optional style choices for it.
The style choices (font, color) are applied to the entire text.
For more detailed control, use crate::text::LayoutJob
instead.
Implementations
Override the TextStyle
.
Set the TextStyle
unless it has already been set
Use TextStyle::Heading
.
Use TextStyle::Monospace
.
Draw a line under the text.
If you want to control the line color, use LayoutJob
instead.
Draw a line through the text, crossing it out.
If you want to control the strikethrough line color, use LayoutJob
instead.
For e.g. exponents.
Align text to top. Only applicable together with Self::small()
.
Fill-color behind the text.
Read the font height of the selected text style.