Skip to main content

TextFontStyle

TextFontStyle is the simple font-posture enum used by Text, RichTextRun, and related text styling APIs.

Example

use fission::core::ui::{Text, TextFontStyle};

let node = Text {
content: "Draft".into(),
font_style: TextFontStyle::Italic,
..Default::default()
}
.into_node();

Choice table

ChoiceTypeMeaningNotes / default behavior
NormalTextFontStyleRegular upright text.Default.
ItalicTextFontStyleItalic text.Use for emphasis or special notation, not for large amounts of body copy.

Specific advice

Prefer semantic emphasis through content and layout first. Italic text is useful, but easy to overuse in user interface where clarity matters more than stylistic flourish.

Text, RichTextRun, TextRunStyle, and RichText.