Skip to main content

Class SKTypeface

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

public sealed class SKTypeface : IDisposable

Inheritance​

object ← SKTypeface

Implements​

IDisposable

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties​

Default​

public static SKTypeface Default { get; }

Property Value​

SKTypeface

FamilyName​

public string FamilyName { get; }

Property Value​

string

FontStyle​

public SKFontStyle FontStyle { get; }

Property Value​

SKFontStyle

GlyphCount​

public int GlyphCount { get; }

Property Value​

int

IsBold​

public bool IsBold { get; }

Property Value​

bool

IsFixedPitch​

public bool IsFixedPitch { get; }

Property Value​

bool

IsItalic​

public bool IsItalic { get; }

Property Value​

bool

UnitsPerEm​

public int UnitsPerEm { get; }

Property Value​

int

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

FromStream(Stream)​

public static SKTypeface FromStream(Stream stream)

Parameters​

stream Stream

Returns​

SKTypeface

GetTableSize(uint)​

public int GetTableSize(uint tag)

Parameters​

tag uint

Returns​

int

OpenStream()​

public SKStreamAsset OpenStream()

Returns​

SKStreamAsset

TryGetTableData(uint, int, int, nint)​

public bool TryGetTableData(uint tag, int offset, int length, nint destination)

Parameters​

tag uint

offset int

length int

destination nint

Returns​

bool

TryGetTableData(uint, out byte[])​

public bool TryGetTableData(uint tag, out byte[] table)

Parameters​

tag uint

table byte[]

Returns​

bool