19 references to FontStyleType
Microsoft.Maui.Graphics (11)
Font.cs (3)
36
public Font(string name, int weight = FontWeights.Normal,
FontStyleType
styleType =
FontStyleType
.Normal)
45
public
FontStyleType
StyleType { get; private set; }
FontSource.cs (3)
9
public FontSource(string filename, int weight = FontWeights.Normal,
FontStyleType
fontStyleType =
FontStyleType
.Normal)
17
public readonly
FontStyleType
FontStyleType;
IFont.cs (1)
7
FontStyleType
StyleType { get; }
IFontExtensions.cs (2)
27
if (font.StyleType ==
FontStyleType
.Italic)
30
if (font.StyleType ==
FontStyleType
.Oblique)
IPlatformFonts.cs (2)
18
object Get(string alias, int weight = FontWeights.Normal,
FontStyleType
fontStyleType =
FontStyleType
.Normal);
Microsoft.Maui.Graphics.Skia (3)
FontExtensions.cs (3)
20
FontStyleType
.Normal => SKFontStyleSlant.Upright,
21
FontStyleType
.Italic => SKFontStyleSlant.Italic,
22
FontStyleType
.Oblique => SKFontStyleSlant.Oblique,
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (5)
src\Graphics\src\Graphics\Platforms\Windows\FontExtensions.cs (5)
17
public static FontStyle ToFontStyle(this
FontStyleType
fontStyleType)
20
FontStyleType
.Italic => FontStyle.Italic,
21
FontStyleType
.Oblique => FontStyle.Oblique,
22
FontStyleType
.Normal => FontStyle.Normal,
32
FontStyle = (font?.StyleType ??
FontStyleType
.Normal).ToFontStyle()