Skip to content
Algo Trade Analytics Docs

label.set_text_font_family() - Pine Script Function

The function sets the font family of the text inside the label.

label.set_text_font_family(id, text_font_family) → void
NameTypeDescription
idseries labelA label object.
//@version=6
indicator("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)