label.set_text_font_family() - Pine Script Function
label.set_text_font_family()
Section titled “label.set_text_font_family()”Overview
Section titled “Overview”The function sets the font family of the text inside the label.
Syntax
Section titled “Syntax”label.set_text_font_family(id, text_font_family) → voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | series label | A label object. |
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("Example of setting the label font")if barstate.islastconfirmedhistory l =label.new(bar_index, 0, "monospace", yloc=yloc.abovebar) label.set_text_font_family(l, font.family_monospace)