20 changed files with 300 additions and 179 deletions
@ -1,27 +0,0 @@ |
|||||
// Copyright (c) The Avalonia Project. All rights reserved.
|
|
||||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
||||
|
|
||||
using System; |
|
||||
|
|
||||
namespace Avalonia.Media.Fonts |
|
||||
{ |
|
||||
internal class FontAsset |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Initializes a new instance of the <see cref="FontAsset"/> class.
|
|
||||
/// </summary>
|
|
||||
/// <param name="source">The source.</param>
|
|
||||
public FontAsset(Uri source) |
|
||||
{ |
|
||||
Source = source; |
|
||||
} |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Gets the source of the asset.
|
|
||||
/// </summary>
|
|
||||
/// <value>
|
|
||||
/// The source.
|
|
||||
/// </value>
|
|
||||
public Uri Source { get; } |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Avalonia.Media |
||||
|
{ |
||||
|
using Avalonia.Media.Fonts; |
||||
|
|
||||
|
public interface IFontFamily |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Gets the name of the font family.
|
||||
|
/// </summary>
|
||||
|
/// <value>
|
||||
|
/// The name of the font family.
|
||||
|
/// </value>
|
||||
|
string Name { get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets the family names.
|
||||
|
/// </summary>
|
||||
|
/// <value>
|
||||
|
/// The family familyNames.
|
||||
|
/// </value>
|
||||
|
FamilyNameCollection FamilyNames { get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets the key for associated assets.
|
||||
|
/// </summary>
|
||||
|
/// <value>
|
||||
|
/// The family familyNames.
|
||||
|
/// </value>
|
||||
|
FontFamilyKey Key { get; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue