Enum egui::style::FontSelection
source · pub enum FontSelection {
Default,
FontId(FontId),
Style(TextStyle),
}
Variants§
Default
Default text style - will use TextStyle::Body
, unless
Style::override_font_id
or Style::override_text_style
is set.
FontId(FontId)
Directly select size and font family
Style(TextStyle)
Use a TextStyle
to look up the FontId
in Style::text_styles
.