16 references to FontWeight
Microsoft.Maui (13)
Primitives\Font.cs (13)
18 public bool IsDefault => Family == null && (Size <= 0 || double.IsNaN(Size)) && Slant == FontSlant.Default && Weight == FontWeight.Regular;
20 static Font _default = default(Font).WithWeight(FontWeight.Regular);
24 readonly FontWeight _weight;
26 public FontWeight Weight
28 get => _weight <= 0 ? FontWeight.Regular : _weight;
31 private Font(string? family, double size, FontSlant slant, FontWeight weight, bool enableScaling) : this()
63 public Font WithWeight(FontWeight weight)
68 public Font WithWeight(FontWeight weight, FontSlant fontSlant)
75 public static Font OfSize(string? name, double size, FontWeight weight = FontWeight.Regular, FontSlant fontSlant = FontSlant.Default, bool enableScaling = true) =>
81 public static Font SystemFontOfSize(double size, FontWeight weight = FontWeight.Regular, FontSlant fontSlant = FontSlant.Default, bool enableScaling = true) =>
85 public static Font SystemFontOfWeight(FontWeight weight, FontSlant fontSlant = FontSlant.Default, bool enableScaling = true) =>
Microsoft.Maui.Controls (3)