Share via


IFontExtensions.GetSvgWeight(IFont) Method

Definition

Gets the SVG-compatible weight value for the font.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ GetSvgWeight(Microsoft::Maui::Graphics::IFont ^ font);
public static string GetSvgWeight(this Microsoft.Maui.Graphics.IFont font);
static member GetSvgWeight : Microsoft.Maui.Graphics.IFont -> string
<Extension()>
Public Function GetSvgWeight (font As IFont) As String

Parameters

font
IFont

The font to get the SVG weight for.

Returns

A string representing the font weight in SVG format, or null if the font is null.

Applies to