using System.Text.Json.Serialization; namespace RobotNet.WebApp.Charts.Models.Common; public class ChartFont { /// /// Default font family for all text, follows CSS font-family options. /// 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Family { get; set; } /// /// Height of an individual line of text /// public double LineHeight { get; set; } = 1.2; /// /// Default font size (in px) for text. Does not apply to radialLinear scale point labels. /// public int Size { get; set; } = 12; /// /// Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. /// Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit). /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Style { get; set; } /// /// Default font weight (boldness). /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Weight { get; set; } = "bold"; }