Class SKFont
Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll
public sealed class SKFont : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SKFont()
public SKFont()
SKFont(SKTypeface, float, float, float)
public SKFont(SKTypeface typeface, float size, float scaleX = 1, float skewX = 0)
Parameters
typeface
SKTypeface
size
float
scaleX
float
skewX
float
Properties
Edging
public SKFontEdging Edging { get; set; }
Property Value
Embolden
public bool Embolden { get; set; }
Property Value
Hinting
public SKFontHinting Hinting { get; set; }
Property Value
LinearMetrics
public bool LinearMetrics { get; set; }
Property Value
ScaleX
public float ScaleX { get; set; }
Property Value
Size
public float Size { get; set; }
Property Value
SkewX
public float SkewX { get; set; }
Property Value
Subpixel
public bool Subpixel { get; set; }
Property Value
Typeface
public SKTypeface Typeface { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetGlyphWidths(ReadOnlySpan<ushort>, float[]?, Span<SKRect>)
public float GetGlyphWidths(ReadOnlySpan<ushort> glyphs, float[]? widths, Span<SKRect> bounds)
Parameters
glyphs
ReadOnlySpan<ushort>
widths
float[]?