Pango.Fontset

Entities

Tagged Types

Access Types

Subprograms

Description

A Pango.Fontset.Pango_Fontset represents a set of Pango.Font.Pango_Font to use when rendering text. It is the result of resolving a Pango.Font.Pango_Font_Description against a particular Pango.Context.Pango_Context. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.

an object containing a set of pango.Font objects

Foreach

procedure Foreach
   (Self : not null access Pango_Fontset_Record;
    Func : Pango_Fontset_Foreach_Func)

Iterates through all the fonts in a fontset, calling Func for each one. If Func returns True, that stops the iteration. Since: gtk+ 1.4

Parameters
Self
Func

Callback function

Get_Font

function Get_Font
   (Self : not null access Pango_Fontset_Record;
    Wc   : Guint) return Pango.Font.Pango_Font

Returns the font in the fontset that contains the best glyph for the Unicode character Wc.

Parameters
Self
Wc

a Unicode character

Return Value

a Pango.Font.Pango_Font. The caller must call g_object_unref when finished with the font.

Get_Metrics

function Get_Metrics
   (Self : not null access Pango_Fontset_Record)
    return Pango.Font_Metrics.Pango_Font_Metrics

Get overall metric information for the fonts in the fontset.

Parameters
Self
Return Value

a Pango.Font_Metrics.Pango_Font_Metrics object. The caller must call Pango.Font_Metrics.Unref when finished using the object.

Get_Type

function Get_Type return Glib.GType
Return Value

Pango_Fontset

type Pango_Fontset is access all Pango_Fontset_Record'Class;

Pango_Fontset_Foreach_Func

type Pango_Fontset_Foreach_Func is access function
  (Fontset : not null access Pango_Fontset_Record'Class;
   Font    : not null access Pango.Font.Pango_Font_Record'Class)
return Boolean;

A callback function used by Pango.Fontset.Foreach when enumerating the fonts in a fontset. Since: gtk+ 1.4

Parameters
Fontset

a Pango.Fontset.Pango_Fontset

Font

a font from Fontset

Return Value

if True, stop iteration and return immediately.

Pango_Fontset_Record

type Pango_Fontset_Record is new GObject_Record with null record;