ChartText.FontFamily
property · ChartText · 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;}
chartText.FontFamily: str
Returns string
Examples
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.FontFamily = "Arial";
Print("Text font family: {0}", text.FontFamily);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.FontFamily = "Arial"
api.Print(f"Text font family: {text.FontFamily}")