S or /

SourceEnum TextStyle

from egui import TextStyle
TextStyle.Body
TextStyle.Button
TextStyle.Heading
TextStyle.Monospace
TextStyle.Small

Alias for a FontId (font of a certain size).

The font is found via look-up in Style.text_styles. You can use TextStyle.resolve to do this lookup.

Variants§

TextStyle.Body Enum value§

TextStyle.Button Enum value§

TextStyle.Heading Enum value§

TextStyle.Monospace Enum value§

TextStyle.Small Enum value§

Methods§

@staticmethod def Name(name: str) -> TextStyle§
Sourcedef resolve(self, /, style: Style) -> FontId§

Look up this TextStyle in Style.text_styles.