Edit

Share via


FontFunctions Class

Definition

Represents a collection of callback functions used by HarfBuzz for font operations such as retrieving glyph metrics, advances, and extents.

public class FontFunctions : HarfBuzzSharp.NativeObject
Inheritance
FontFunctions

Constructors

Name Description
FontFunctions()

Initializes a new instance of the FontFunctions class with no callbacks set.

Properties

Name Description
Empty

Gets a reference to the empty FontFunctions instance with no callbacks set.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from NativeObject)
IsImmutable

Gets a value indicating whether this font functions instance is immutable.

Methods

Name Description
Dispose()

Releases all resources used by this NativeObject.

(Inherited from NativeObject)
Dispose(Boolean)

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

DisposeHandler()

Releases the unmanaged resources used.

MakeImmutable()

Makes this font functions instance immutable, preventing further modifications.

SetGlyphContourPointDelegate(GlyphContourPointDelegate, ReleaseDelegate)

Sets the callback for retrieving glyph contour point coordinates.

SetGlyphExtentsDelegate(GlyphExtentsDelegate, ReleaseDelegate)

Sets the callback for retrieving glyph extents (bounding box).

SetGlyphFromNameDelegate(GlyphFromNameDelegate, ReleaseDelegate)

Sets the callback for retrieving a glyph identifier from a glyph name.

SetGlyphNameDelegate(GlyphNameDelegate, ReleaseDelegate)

Sets the callback for retrieving the name of a glyph.

SetHorizontalFontExtentsDelegate(FontExtentsDelegate, ReleaseDelegate)

Sets the callback for retrieving font extents for horizontal text layout.

SetHorizontalGlyphAdvanceDelegate(GlyphAdvanceDelegate, ReleaseDelegate)

Sets the callback for retrieving horizontal advance width for a single glyph.

SetHorizontalGlyphAdvancesDelegate(GlyphAdvancesDelegate, ReleaseDelegate)

Sets the callback for retrieving horizontal advance widths for multiple glyphs.

SetHorizontalGlyphKerningDelegate(GlyphKerningDelegate, ReleaseDelegate)

Sets the callback for retrieving horizontal kerning adjustment between two glyphs.

SetHorizontalGlyphOriginDelegate(GlyphOriginDelegate, ReleaseDelegate)

Sets the callback for retrieving the origin point for horizontal glyph layout.

SetNominalGlyphDelegate(NominalGlyphDelegate, ReleaseDelegate)

Sets the callback for mapping a Unicode code point to its nominal glyph identifier.

SetNominalGlyphsDelegate(NominalGlyphsDelegate, ReleaseDelegate)

Sets the callback for mapping multiple Unicode code points to their nominal glyph identifiers.

SetVariationGlyphDelegate(VariationGlyphDelegate, ReleaseDelegate)

Sets the callback for retrieving the glyph identifier for a Unicode code point with a variation selector.

SetVerticalFontExtentsDelegate(FontExtentsDelegate, ReleaseDelegate)

Sets the callback for retrieving font extents for vertical text layout.

SetVerticalGlyphAdvanceDelegate(GlyphAdvanceDelegate, ReleaseDelegate)

Sets the callback for retrieving vertical advance height for a single glyph.

SetVerticalGlyphAdvancesDelegate(GlyphAdvancesDelegate, ReleaseDelegate)

Sets the callback for retrieving vertical advance heights for multiple glyphs.

SetVerticalGlyphOriginDelegate(GlyphOriginDelegate, ReleaseDelegate)

Sets the callback for retrieving the origin point for vertical glyph layout.

Applies to