2 implementations of IFont
Microsoft.Maui.Graphics (2)
Font.cs (2)
28 public struct Font : IFont, IEquatable<IFont>
34 references to IFont
Microsoft.Maui.Graphics (23)
AbstractCanvas.cs (3)
68 public abstract IFont Font { set; } 317 public SizeF GetStringSize(string value, IFont font, float fontSize) => 320 public SizeF GetStringSize(string aString, IFont font, float aFontSize, HorizontalAlignment aHorizontalAlignment, VerticalAlignment aVerticalAlignment) =>
Font.cs (2)
47 public bool Equals(IFont other) 54 => obj is IFont font && Equals(font);
ICanvas.cs (3)
64 public IFont Font { set; } 347 public SizeF GetStringSize(string value, IFont font, float fontSize); 358 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
IFontExtensions.cs (2)
5 public static string GetSvgWeight(this IFont font) 22 public static string GetSvgStyle(this IFont font)
IPlatformFonts.cs (3)
11 IFont Default { get; } 12 IFont DefaultBold { get; } 16 object Get(IFont font);
IStringSizeService.cs (2)
5 SizeF GetStringSize(string value, IFont font, float fontSize); 7 SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
ITextAttributes.cs (1)
5 IFont Font { get; set; }
PictureCanvas.cs (3)
87 public IFont Font 264 public SizeF GetStringSize(string value, IFont font, float fontSize) 269 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
ScalingCanvas.cs (3)
84 public IFont Font 281 public SizeF GetStringSize(string value, IFont font, float fontSize) 284 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
StandardTextAttributes.cs (1)
5 public IFont Font { get; set; }
Microsoft.Maui.Graphics.Skia (6)
FontExtensions.cs (1)
10 public static SKTypeface ToSKTypeface(this IFont font)
SkiaCanvas.cs (1)
85 public override IFont Font
SkiaCanvasState.cs (2)
11 private IFont _font; 207 public IFont Font
SkiaStringSizeService.cs (2)
7 public SizeF GetStringSize(string value, IFont font, float fontSize) 22 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (5)
src\Graphics\src\Graphics\Platforms\Windows\FontExtensions.cs (1)
26 public static CanvasTextFormat ToCanvasTextFormat(this IFont font, float size)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
118 public override IFont Font
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (1)
74 public IFont Font { get; set; }
src\Graphics\src\Graphics\Platforms\Windows\PlatformStringSizeService.cs (2)
22 public SizeF GetStringSize(string value, IFont font, float textSize) 25 public SizeF GetStringSize(string value, IFont font, float textSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)