Skip to main content

role_text

Function role_text 

Source
pub fn role_text(ui: &Ui, role: TextRole, text: impl Into<String>) -> RichText
Expand description

text in a role’s size, colour and weight (text-role.*), for a widget that takes a [RichText]. A weight other than regular is drawn with the theme’s interface font at that weight once the theme has installed it (fonts::family), at the regular weight before.