Skip to main content

Parse(String, Uri) Method

Parses a FontFamily string.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static FontFamily Parse(
string s,
Uri? baseUri
)

Parameters

  String
The FontFamily string.
  Uri
Specifies the base uri that is used to resolve font family assets.

Return Value

FontFamily

Exceptions

ArgumentExceptionSpecified family is not supported.

See Also

Reference

FontFamily Class
Parse Overload
Avalonia.Media Namespace