Table of Contents

Class Font

Namespace
Pango.Internal
Assembly
Pango-1.0.dll
public class Font
Inheritance
Font
Inherited Members

Methods

Describe(IntPtr)

Calls native method pango_font_describe.

public static extern FontDescriptionOwnedHandle Describe(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

Returns

FontDescriptionOwnedHandle

Transfer ownership: Full Nullable: False

DescribeWithAbsoluteSize(IntPtr)

Calls native method pango_font_describe_with_absolute_size. Version: 1.14

[Version("1.14")]
public static extern FontDescriptionOwnedHandle DescribeWithAbsoluteSize(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

Returns

FontDescriptionOwnedHandle

Transfer ownership: Full Nullable: False

DescriptionsFree(ref IntPtr, int)

Calls native function pango_font_descriptions_free.

public static extern void DescriptionsFree(ref IntPtr descs, int nDescs)

Parameters

descs IntPtr

Transfer ownership: Full Nullable: True

nDescs int

Transfer ownership: None Nullable: False

Deserialize(IntPtr, BytesHandle, out ErrorOwnedHandle)

Calls native function pango_font_deserialize. Version: 1.50

[Version("1.50")]
public static extern IntPtr Deserialize(IntPtr context, BytesHandle bytes, out ErrorOwnedHandle error)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

bytes BytesHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetCoverage(IntPtr, LanguageHandle)

Calls native method pango_font_get_coverage.

public static extern IntPtr GetCoverage(IntPtr font, LanguageHandle language)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

language LanguageHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetFace(IntPtr)

Calls native method pango_font_get_face. Version: 1.46

[Version("1.46")]
public static extern IntPtr GetFace(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetFeatures(IntPtr, feature_tArrayHandle, uint, ref uint)

Calls native method pango_font_get_features. Version: 1.44

[Version("1.44")]
public static extern void GetFeatures(IntPtr font, feature_tArrayHandle features, uint len, ref uint numFeatures)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

features feature_tArrayHandle

Transfer ownership: None Nullable: False

len uint

Transfer ownership: None Nullable: False

numFeatures uint

Transfer ownership: Full Nullable: False

GetFontMap(IntPtr)

Calls native method pango_font_get_font_map. Version: 1.10

[Version("1.10")]
public static extern IntPtr GetFontMap(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function pango_font_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGlyphExtents(IntPtr, Glyph, RectangleOwnedHandle, RectangleOwnedHandle)

Calls native method pango_font_get_glyph_extents.

public static extern void GetGlyphExtents(IntPtr font, Glyph glyph, RectangleOwnedHandle inkRect, RectangleOwnedHandle logicalRect)

Parameters

font IntPtr

Transfer ownership: None Nullable: True

glyph Glyph

Transfer ownership: None Nullable: False

inkRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

logicalRect RectangleOwnedHandle

Transfer ownership: None Nullable: False

GetHbFont(IntPtr)

Calls native method pango_font_get_hb_font. Version: 1.44

[Version("1.44")]
public static extern font_tUnownedHandle GetHbFont(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

Returns

font_tUnownedHandle

Transfer ownership: None Nullable: True

GetMetrics(IntPtr, LanguageHandle)

Calls native method pango_font_get_metrics.

public static extern FontMetricsOwnedHandle GetMetrics(IntPtr font, LanguageHandle language)

Parameters

font IntPtr

Transfer ownership: None Nullable: True

language LanguageHandle

Transfer ownership: None Nullable: True

Returns

FontMetricsOwnedHandle

Transfer ownership: Full Nullable: False

HasChar(IntPtr, uint)

Calls native method pango_font_has_char. Version: 1.44

[Version("1.44")]
public static extern bool HasChar(IntPtr font, uint wc)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

wc uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Serialize(IntPtr)

Calls native method pango_font_serialize. Version: 1.50

[Version("1.50")]
public static extern BytesOwnedHandle Serialize(IntPtr font)

Parameters

font IntPtr

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False