Edit

Face Class

Definition

Represents a typeface.

public class Face : HarfBuzzSharp.NativeObject
Inheritance

Constructors

Name Description
Face(Blob, Int32)

Initializes a new instance of the Face class, using the specified typeface blob.

Face(Blob, UInt32)

Initializes a new instance of the Face class, using the specified typeface blob.

Face(GetTableDelegate, ReleaseDelegate)

Initializes a new instance of the Face class, using the delegate to assemble the data.

Face(GetTableDelegate)

Initializes a new instance of the Face class, using the delegate to assemble the data.

Properties

Name Description
Empty

Gets a reference to the empty Face instance.

GlyphCount

Gets or sets the number of glyphs in the face.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from NativeObject)
HasColorLayers

Gets a value indicating whether the font face contains a COLR color-layers table.

HasColorPng

Gets a value indicating whether the font face contains a PNG color-bitmap table.

HasColorSvg

Gets a value indicating whether the font face contains an SVG color table.

HasPalettes

Gets a value indicating whether the font face contains a CPAL color-palette table.

HasVariationData

Gets a value indicating whether the font face contains OpenType variation data.

Index

Gets or sets the zero-based face index in a collection.

IsImmutable

Gets a value indicating whether this face is immutable.

NamedInstanceCount

Gets the number of named instances in the font face.

PaletteCount

Gets the number of color palettes in the font face.

Tables

Gets the list of OpenType table tags present in this face.

UnitsPerEm

Gets or sets the units per EM.

VariationAxisCount

Gets the number of variation axes in the font face.

VariationAxisInfos

Gets information about all variation axes in the font face.

Methods

Name Description
Dispose()

Releases all resources used by this NativeObject.

(Inherited from NativeObject)
Dispose(Boolean)

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

DisposeHandler()

Releases the unmanaged resources used.

GetNamedInstanceDesignCoords(Int32, Span<Single>)

Fills a span with the design-space coordinates for the specified named instance.

GetNamedInstanceDesignCoords(Int32)

Returns the design-space coordinates for the specified named instance.

GetNamedInstanceDesignCoordsCount(Int32)

Returns the number of design-space coordinates for the specified named instance.

GetNamedInstancePostScriptNameId(Int32)

Returns the OpenType name ID of the PostScript name for the specified named instance.

GetNamedInstanceSubfamilyNameId(Int32)

Returns the OpenType name ID of the subfamily name for the specified named instance.

GetPaletteColorNameId(Int32)

Returns the OpenType name ID of the name string for the specified palette color entry.

GetPaletteColors(Int32, Span<HBColor>)

Fills a span with the color entries for the specified font palette.

GetPaletteColors(Int32)

Returns all color entries for the specified font palette.

GetPaletteFlags(Int32)

Returns the flags for the specified font palette.

GetPaletteNameId(Int32)

Returns the OpenType name ID of the name string for the specified palette.

GetVariationAxisInfos(Span<OpenTypeVarAxisInfo>)

Fills a span with information about the font's variation axes.

MakeImmutable()

Makes this face immutable, preventing further modifications.

ReferenceTable(Tag)

Retrieves a reference to the specified font table as a blob.

TryFindVariationAxis(Tag, OpenTypeVarAxisInfo)

Attempts to find information about the variation axis with the specified tag.

Applies to