Share via


IFont Interface

Definition

Defines a font with name, weight, and style properties for text rendering.

public interface class IFont
public interface IFont
type IFont = interface
Public Interface IFont
Derived

Properties

Name

Gets the name of the font family or font file.

StyleType

Gets the style type of the font (e.g., normal, italic).

Weight

Gets the weight of the font (boldness level).

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.

Applies to