Drawing / Reference
alerta.label.set_text_font_family
TradingView-compatible spelling: label.set_text_font_family, runs without warnings
Pine v6: switch the label text font family (font.family_default | font.family_monospace).
alerta.label.set_text_font_family(id, text_font_family) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | label | Yes | — | Label handle. |
text_font_family | string | Yes | — | Font family. |
Returns
voidExample
alerta.label.set_text_font_family
lbl = label.new(bar_index, high, "x")label.set_text_font_family(lbl, font.family_monospace)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.