ChartStaticText.FontFamily
property · ChartStaticText · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets the font style of the text.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
string FontFamily {get; set;}
chartStaticText.FontFamily: str
Returns string
Examples
var text = Chart.DrawStaticText("info", SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.FontFamily = "Consolas";
Print("Static text font family: {0}", text.FontFamily);
text = api.Chart.DrawStaticText("info", api.SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.FontFamily = "Consolas"
api.Print(f"Static text font family: {text.FontFamily}")