Table of Contents

Class FontMap

Namespace
Pango
Assembly
Pango-1.0.dll
public class FontMap : Object, ListModel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
FontMap
Implements
Derived
Inherited Members

Constructors

FontMap(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FontMap(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FontMap(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FontMap(CreationData data)

Parameters

data CreationData

FontMap(FontMapHandle)

protected FontMap(FontMapHandle handle)

Parameters

handle FontMapHandle

Fields

ItemsChangedSignal

Signal Descriptor for OnItemsChanged.

public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal

Field Value

Signal<ListModel, ListModel.ItemsChangedSignalArgs>

NItemsPropertyDefinition

public static readonly Property<uint, FontMap> NItemsPropertyDefinition

Field Value

Property<uint, FontMap>

Properties

NItems

public uint NItems { get; }

Property Value

uint

Methods

AddFontFile(string)

[Version("1.56")]
public bool AddFontFile(string filename)

Parameters

filename string

Returns

bool

Changed()

[Version("1.34")]
public void Changed()

CreateContext()

[Version("1.22")]
public Context CreateContext()

Returns

Context

GetFamily(string)

[Version("1.46")]
public FontFamily GetFamily(string name)

Parameters

name string

Returns

FontFamily

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("2.44")]
public nint GetItem(uint position)

Parameters

position uint

Returns

nint

GetItemType()

[Version("2.44")]
public Type GetItemType()

Returns

Type

GetNItems()

[Version("2.44")]
public uint GetNItems()

Returns

uint

GetObject(uint)

[Version("2.44")]
public Object? GetObject(uint position)

Parameters

position uint

Returns

Object

GetSerial()

[Version("1.32.4")]
public uint GetSerial()

Returns

uint

ItemsChanged(uint, uint, uint)

[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)

Parameters

position uint
removed uint
added uint

LoadFont(Context, FontDescription)

public Font? LoadFont(Context context, FontDescription desc)

Parameters

context Context
desc FontDescription

Returns

Font

LoadFontset(Context, FontDescription, Language)

public Fontset? LoadFontset(Context context, FontDescription desc, Language language)

Parameters

context Context
desc FontDescription
language Language

Returns

Fontset

NewFromPointer(nint, bool)

Creates a new managed FontMap instance for a given pointer.

public static FontMap NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FontMap

NewWithProperties(ConstructArgument[])

Creates a new FontMap and sets the properties specified by the construct arguments.

public static FontMap NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FontMap

ReloadFont(Font, double, Context?, string?)

[Version("1.52")]
public Font ReloadFont(Font font, double scale, Context? context, string? variations)

Parameters

font Font
scale double
context Context
variations string

Returns

Font

Events

OnItemsChanged

public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged

Event Type

SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs>