|
|
@ -133,6 +133,16 @@ namespace Avalonia.Media |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Parses a <see cref="T:Avalonia.Media.FontFamily"/> string.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="s">The <see cref="T:Avalonia.Media.FontFamily"/> string.</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
|
|
/// Specified family is not supported.
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
public static FontFamily Parse(string s) => Parse(s, null); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Parses a <see cref="T:Avalonia.Media.FontFamily"/> string.
|
|
|
/// Parses a <see cref="T:Avalonia.Media.FontFamily"/> string.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
@ -142,7 +152,7 @@ namespace Avalonia.Media |
|
|
/// <exception cref="ArgumentException">
|
|
|
/// <exception cref="ArgumentException">
|
|
|
/// Specified family is not supported.
|
|
|
/// Specified family is not supported.
|
|
|
/// </exception>
|
|
|
/// </exception>
|
|
|
public static FontFamily Parse(string s, Uri baseUri = null) |
|
|
public static FontFamily Parse(string s, Uri baseUri) |
|
|
{ |
|
|
{ |
|
|
if (string.IsNullOrEmpty(s)) |
|
|
if (string.IsNullOrEmpty(s)) |
|
|
{ |
|
|
{ |
|
|
|