Interface: TextFont
Experimental
A font request: CSS family list, size in CSS px, weight, and style, plus Plotly's paint-level font attributes (variant, textcase, lineposition, shadow).
Properties
| Property | Type | Description |
|---|---|---|
family | string | Experimental CSS font family list, e.g. 'Inter, "Open Sans", sans-serif'. |
lineposition? | string | Experimental Decoration lines, e.g. 'under', 'under+through'. Default 'none'. |
shadow? | string | Experimental CSS text-shadow: 'none' (default), 'auto' (a thin halo in the text color's contrast color), or e.g. '1px 1px 2px black'. Only the first shadow of a list is drawn. |
size | number | Experimental Font size in CSS px (em-box height). |
style? | TextFontStyle | Experimental Default 'normal'. |
textcase? | TextFontTextCase | Experimental Default 'normal'. Changes the drawn (and measured) text. |
variant? | TextFontVariant | Experimental Default 'normal'. Changes the drawn (and measured) text and size. |
weight? | TextFontWeight | Experimental Default 400. |