IFontExtensions.GetSvgWeight(IFont) Method
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.
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.