Op Englesch liesen Editéieren

Deelen iwwer


Font Class

Definition

Represents a specific font face.

C#
public class Font : HarfBuzzSharp.NativeObject
Inheritance

Constructors

Font(Face)

Creates a new Font using a specific font face.

Font(Font)

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from NativeObject)
OpenTypeMetrics
Parent
SupportedShapers

Methods

Dispose()

Releases all resources used by this NativeObject.

(Inherited from NativeObject)
Dispose(Boolean)

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

DisposeHandler()

Releases the unmanaged resources used.

DisposeHandler()

Releases the unmanaged resources used.

(Inherited from NativeObject)
GetFontExtentsForDirection(Direction)
GetGlyphAdvanceForDirection(UInt32, Direction, Int32, Int32)
GetGlyphAdvancesForDirection(IntPtr, Int32, Direction)
GetGlyphAdvancesForDirection(ReadOnlySpan<UInt32>, Direction)
GetHorizontalGlyphAdvance(UInt32)
GetHorizontalGlyphAdvances(IntPtr, Int32)
GetHorizontalGlyphAdvances(ReadOnlySpan<UInt32>)
GetHorizontalGlyphKerning(UInt32, UInt32)
GetScale(Int32, Int32)

Retrieves the font scale.

GetVerticalGlyphAdvance(UInt32)
GetVerticalGlyphAdvances(IntPtr, Int32)
GetVerticalGlyphAdvances(ReadOnlySpan<UInt32>)
GlyphToString(UInt32)
SetFontFunctions(FontFunctions, Object, ReleaseDelegate)
SetFontFunctions(FontFunctions, Object)
SetFontFunctions(FontFunctions)
SetFunctionsOpenType()

Sets the font functions to that of OpenType.

SetScale(Int32, Int32)

Sets the font scale.

Shape(Buffer, Feature[])

Shapes the specified buffer using the current font.

Shape(Buffer, IReadOnlyList<Feature>, IReadOnlyList<String>)
TryGetGlyph(Int32, UInt32, UInt32)
TryGetGlyph(Int32, UInt32)
TryGetGlyph(UInt32, UInt32, UInt32)
TryGetGlyph(UInt32, UInt32)
TryGetGlyphContourPoint(UInt32, UInt32, Int32, Int32)
TryGetGlyphContourPointForOrigin(UInt32, UInt32, Direction, Int32, Int32)
TryGetGlyphExtents(UInt32, GlyphExtents)
TryGetGlyphFromName(String, UInt32)
TryGetGlyphFromString(String, UInt32)
TryGetGlyphName(UInt32, String)
TryGetHorizontalFontExtents(FontExtents)
TryGetHorizontalGlyphOrigin(UInt32, Int32, Int32)
TryGetNominalGlyph(Int32, UInt32)
TryGetNominalGlyph(UInt32, UInt32)
TryGetVariationGlyph(Int32, UInt32, UInt32)
TryGetVariationGlyph(Int32, UInt32)
TryGetVariationGlyph(UInt32, UInt32, UInt32)
TryGetVariationGlyph(UInt32, UInt32)
TryGetVerticalFontExtents(FontExtents)
TryGetVerticalGlyphOrigin(UInt32, Int32, Int32)

Applies to

Produkt Versiounen
HarfBuzzSharp 1.4.x, 2.6.x, 2.8.x, 7.3.x