Edit

Share via


SKFontStyle Class

Definition

Represents a particular style (bold, italic, condensed) of a typeface.

public class SKFontStyle : SkiaSharp.SKObject
Inheritance

Constructors

SKFontStyle()

Creates a new SKFontStyle with a normal weight, a normal width and upright.

SKFontStyle(Int32, Int32, SKFontStyleSlant)

Creates a new SKFontStyle with the specified weight, width and slant.

SKFontStyle(SKFontStyleWeight, SKFontStyleWidth, SKFontStyleSlant)

Creates a new SKFontStyle with the specified weight, width and slant.

Properties

Bold

Gets a new upright font style that is bold.

BoldItalic

Gets a new italic font style that is bold.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
Italic

Gets a new italic font style.

Normal

Gets a new normal (upright and not bold) font style.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Slant

Gets the slant of this style.

Weight

Gets the weight of this style.

Width

Gets the width of this style.

Methods

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKFontStyle and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

DisposeUnownedManaged() (Inherited from SKObject)

Applies to