Font Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a font with a name, weight, and style.
public value class Font : IEquatable<Microsoft::Maui::Graphics::IFont ^>, Microsoft::Maui::Graphics::IFont
public struct Font : IEquatable<Microsoft.Maui.Graphics.IFont>, Microsoft.Maui.Graphics.IFont
type Font = struct
interface IFont
Public Structure Font
Implements IEquatable(Of IFont), IFont
- Inheritance
-
Font
- Implements
Constructors
Font(String, Int32, FontStyleType) |
Initializes a new instance of the Font struct with the specified name, weight, and style. |
Properties
Default |
Gets the default font. |
DefaultBold |
Gets the default bold font. |
IsDefault |
Gets a value indicating whether this font is a default font (has no specified name). |
Name |
Gets the font name or family. |
StyleType |
Gets the font style type. |
Weight |
Gets the font weight. |
Methods
Equals(IFont) |
Determines whether the specified font is equal to the current font. |
Equals(Object) |
Determines whether the specified object is equal to the current font. |
GetHashCode() |
Returns a hash code for this font. |
Operators
Equality(Font, Font) |
Determines whether two specified fonts have the same value. |
Inequality(Font, Font) |
Determines whether two specified fonts have different values. |
Extension Methods
GetSvgStyle(IFont) |
Gets the SVG-compatible style value for the font. |
GetSvgWeight(IFont) |
Gets the SVG-compatible weight value for the font. |
ToSKTypeface(IFont) |
Converts a .NET MAUI Graphics font to a SkiaSharp typeface. |