using SkiaSharp;
using System;
using System.Collections.Generic;
using System.Text;
namespace Topten.RichTextKit
{
///
/// Provides a mechanism to override the default font fallback character matching
///
///
/// To override font fallback selection, assign an implementation of this interface
/// to the property.
///
public interface ICharacterMatcher
{
///
/// Provide a fallback typeface for a specified code point index
///
/// The family name to use when searching.
/// The font weight to use when searching.
/// The font width to use when searching.
/// The font slant to use when searching.
/// The ISO 639, 15924, and 3166-1 code to use when searching, such as "ja" and "zh".
/// The character to find a typeface for.
/// Returns the SkiaSharp.SKTypeface that contains the given character, or null if none was found.
SKTypeface MatchCharacter(string familyName, int weight, int width, SKFontStyleSlant slant, string[] bcp47, int character);
}
}