8 instantiations of Font
Microsoft.Maui (8)
Primitives\Font.cs (8)
49 return new Font(Family, Size, Slant, Weight, enabled); 55 return new Font(Family, size, Slant, Weight, AutoScalingEnabled); 60 return new Font(Family, Size, fontSlant, Weight, AutoScalingEnabled); 65 return new Font(Family, Size, Slant, weight, AutoScalingEnabled); 70 return new Font(Family, Size, fontSlant, weight, AutoScalingEnabled); 77 new(name, size, fontSlant, weight, enableScaling); 83 new(null, size, fontSlant, weight, enableScaling); 86 new(null, default(double), fontSlant, weight, enableScaling);
38 references to Font
Microsoft.Maui (22)
Core\ITextStyle.cs (1)
18 Font Font { get; }
ImageSources\IFontImageSource.cs (1)
10 Font Font { get; }
Primitives\Font.cs (20)
7 public readonly struct Font : IEquatable<Font> 20 static Font _default = default(Font).WithWeight(FontWeight.Regular); 22 public static Font Default => _default; 47 public Font WithAutoScaling(bool enabled) 53 public Font WithSize(double size) 58 public Font WithSlant(FontSlant fontSlant) 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) => 88 bool Equals(Font other) 108 return Equals((Font)obj); 114 public static bool operator ==(Font left, Font right) 119 public static bool operator !=(Font left, Font right) 128 bool IEquatable<Font>.Equals(Font other)
Microsoft.Maui.Controls (16)
Button\Button.cs (1)
505 Font ITextStyle.Font => this.ToFont();
DatePicker\DatePicker.cs (1)
229 Font ITextStyle.Font => this.ToFont();
FontExtensions.cs (5)
9 public static Font WithAttributes(this Font font, FontAttributes attributes) 16 public static FontAttributes GetFontAttributes(this Font font) 29 public static Font ToFont(this IFontElement element, double? defaultSize = null) 35 return Font.OfSize(element.FontFamily, size, enableScaling: element.FontAutoScalingEnabled).WithAttributes(element.FontAttributes);
Image\ImageSource.cs (2)
27 Font IFontImageSource.Font => Font.OfSize(FontFamily, Size, enableScaling: FontAutoScalingEnabled);
InputView\InputView.cs (1)
255 Font ITextStyle.Font => this.ToFont();
Label\Label.cs (1)
415 Font ITextStyle.Font => this.ToFont();
Menu\MenuItem.cs (2)
156 Font ITextStyle.Font => Font.Default;
Picker\Picker.cs (1)
430 Font ITextStyle.Font => this.ToFont();
RadioButton\RadioButton.cs (1)
644 Font ITextStyle.Font => this.ToFont();
TimePicker\TimePicker.cs (1)
156 Font ITextStyle.Font => this.ToFont();