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)
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.

Applies to