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