14 references to FontSlant
Microsoft.Maui (11)
Primitives\Font.cs (11)
15 public FontSlant Slant { get; } 18 public bool IsDefault => Family == null && (Size <= 0 || double.IsNaN(Size)) && Slant == FontSlant.Default && Weight == FontWeight.Regular; 31 private Font(string? family, double size, FontSlant slant, FontWeight weight, bool enableScaling) : this() 58 public Font WithSlant(FontSlant fontSlant) 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)
FontExtensions.cs (3)
13 return font.WithWeight(bold ? FontWeight.Bold : FontWeight.Regular, italic ? FontSlant.Italic : FontSlant.Default); 19 if (font.Slant != FontSlant.Default)