Pango.Font_Family

Entities

Array Types

Tagged Types

Access Types

Subprograms

Description

The Pango.Font_Family.Pango_Font_Family structure is used to represent a family of related font faces. The faces in a family share a common design, but differ in slant, weight, width and other aspects.

Get_Name

function Get_Name
   (Self : not null access Pango_Font_Family_Record) return UTF8_String

Gets the name of the family. The name is unique among all fonts for the font backend and can be used in a Pango.Font.Pango_Font_Description to specify that a face from this family is desired.

Parameters
Self
Return Value

the name of the family. This string is owned by the family object and must not be modified or freed.

Get_Type

function Get_Type return Glib.GType
Return Value

Is_Monospace

function Is_Monospace
   (Self : not null access Pango_Font_Family_Record) return Boolean

A monospace font is a font designed for text display where the the characters form a regular grid. For Western languages this would mean that the advance width of all characters are the same, but this categorization also includes Asian fonts which include double-width characters: characters that occupy two grid cells. g_unichar_iswide returns a result that indicates whether a character is typically double-width in a monospace font. The best way to find out the grid-cell size is to call Pango.Font_Metrics.Get_Approximate_Digit_Width, since the results of Pango.Font_Metrics.Get_Approximate_Char_Width may be affected by double-width characters. Since: gtk+ 1.4

Parameters
Self
Return Value

True if the family is monospace.

Is_Variable

function Is_Variable
   (Self : not null access Pango_Font_Family_Record) return Boolean

A variable font is a font which has axes that can be modified to produce different faces. Since: gtk+ 1.44

Parameters
Self
Return Value

True if the family is variable

List_Faces

function List_Faces
   (Self : not null access Pango_Font_Family_Record)
    return Pango_Font_Face_Array

Lists the different font faces that make up Family. The faces in a family share a common design, but differ in slant, weight, width and other aspects.

Parameters
Self
Return Value

Pango_Font_Family

type Pango_Font_Family is access all Pango_Font_Family_Record'Class;

Pango_Font_Family_Array

type Pango_Font_Family_Array is array (Natural range <>) of Pango_Font_Family;

Pango_Font_Family_Record

type Pango_Font_Family_Record is new GObject_Record with null record;