S or /

SourceEnum FontSelection

from egui import FontSelection
FontSelection.Default

A way to select FontId, either by picking one directly or by using a TextStyle.

Variants§

FontSelection.Default Enum value§

Methods§

@staticmethod def FontId(font_id: FontId) -> FontSelection§
@staticmethod def Style(text_style: TextStyle) -> FontSelection§
Sourcedef resolve(self, /, style: Style) -> FontId§

Resolve to a FontId.

On egui.FontSelection.Default and no override in the style, this will resolve to TextStyle.Body.

Sourcedef resolve_with_fallback(self, /, style: Style, fallback: FontSelection) -> FontId§

Resolve with a final fallback.

Fallback is resolved on egui.FontSelection.Default and no override in the style.