|
|
@ -10,7 +10,7 @@ namespace Avalonia.Skia |
|
|
{ |
|
|
{ |
|
|
private bool _isDisposed; |
|
|
private bool _isDisposed; |
|
|
|
|
|
|
|
|
public GlyphTypefaceImpl(SKTypeface typeface) |
|
|
public GlyphTypefaceImpl(SKTypeface typeface, bool isFakeBold = false, bool isFakeItalic = false) |
|
|
{ |
|
|
{ |
|
|
Typeface = typeface ?? throw new ArgumentNullException(nameof(typeface)); |
|
|
Typeface = typeface ?? throw new ArgumentNullException(nameof(typeface)); |
|
|
|
|
|
|
|
|
@ -52,6 +52,10 @@ namespace Avalonia.Skia |
|
|
0; |
|
|
0; |
|
|
|
|
|
|
|
|
IsFixedPitch = Typeface.IsFixedPitch; |
|
|
IsFixedPitch = Typeface.IsFixedPitch; |
|
|
|
|
|
|
|
|
|
|
|
IsFakeBold = isFakeBold; |
|
|
|
|
|
|
|
|
|
|
|
IsFakeItalic = isFakeItalic; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Face Face { get; } |
|
|
public Face Face { get; } |
|
|
@ -86,6 +90,10 @@ namespace Avalonia.Skia |
|
|
|
|
|
|
|
|
/// <inheritdoc cref="IGlyphTypefaceImpl"/>
|
|
|
/// <inheritdoc cref="IGlyphTypefaceImpl"/>
|
|
|
public bool IsFixedPitch { get; } |
|
|
public bool IsFixedPitch { get; } |
|
|
|
|
|
|
|
|
|
|
|
public bool IsFakeBold { get; } |
|
|
|
|
|
|
|
|
|
|
|
public bool IsFakeItalic { get; } |
|
|
|
|
|
|
|
|
/// <inheritdoc cref="IGlyphTypefaceImpl"/>
|
|
|
/// <inheritdoc cref="IGlyphTypefaceImpl"/>
|
|
|
public ushort GetGlyph(uint codepoint) |
|
|
public ushort GetGlyph(uint codepoint) |
|
|
|