Skip to main content

Class SKFont

Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll

public sealed class SKFont : IDisposable

Inheritance

objectSKFont

Implements

IDisposable

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

SKFontEdging

Embolden

public bool Embolden { get; set; }

Property Value

bool

Hinting

public SKFontHinting Hinting { get; set; }

Property Value

SKFontHinting

LinearMetrics

public bool LinearMetrics { get; set; }

Property Value

bool

ScaleX

public float ScaleX { get; set; }

Property Value

float

Size

public float Size { get; set; }

Property Value

float

SkewX

public float SkewX { get; set; }

Property Value

float

Subpixel

public bool Subpixel { get; set; }

Property Value

bool

Typeface

public SKTypeface Typeface { get; set; }

Property Value

SKTypeface

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[]?

bounds Span<SKRect>

Returns

float