FontSpec
The font a text run is measured and drawn with.
Used as Input
0
functions accept this type(+1 nested)
Used as Output
0
functions return this type(+8 nested)
Type Definition
4 nested items
struct— The font a text run is measured and drawn with.
family:String— CSS
font-family list. Defaults to Inter, system-ui, -apple-system, sans-serif.italic:bool— Italic style, passed to the
crate::svg::TextMeasurer and drawn withsize:f64— Font size in scene units. Defaults to
12.5.weight:f64— CSS numeric font weight (
400 regular, 700 bold). Defaults to 400.Example JSON Value
{}