using System.Globalization;
namespace Avalonia.Media.TextFormatting
{
///
/// Options to customize text shaping.
///
public readonly struct TextShaperOptions
{
public TextShaperOptions(
GlyphTypeface typeface,
double fontRenderingEmSize = 12,
sbyte bidiLevel = 0,
CultureInfo? culture = null,
double incrementalTabWidth = 0)
{
Typeface = typeface;
FontRenderingEmSize = fontRenderingEmSize;
BidiLevel = bidiLevel;
Culture = culture;
IncrementalTabWidth = incrementalTabWidth;
}
///
/// Get the typeface.
///
public GlyphTypeface Typeface { get; }
///
/// Get the font rendering em size.
///
public double FontRenderingEmSize { get; }
///
/// Get the bidi level of the text.
///
public sbyte BidiLevel { get; }
///
/// Get the culture.
///
public CultureInfo? Culture { get; }
///
/// Get the incremental tab width.
///
public double IncrementalTabWidth { get; }
}
}