Pango.Font_Face

Entities

Array Types

Tagged Types

Access Types

Subprograms

Description

The Pango.Font_Face.Pango_Font_Face structure is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.

Describe

function Describe
   (Self : not null access Pango_Font_Face_Record)
    return Pango.Font.Pango_Font_Description

Returns the family, style, variant, weight and stretch of a Pango.Font_Face.Pango_Font_Face. The size field of the resulting font description will be unset.

Parameters
Self
Return Value

a newly-created Pango.Font.Pango_Font_Description structure holding the description of the face. Use pango_font_description_free to free the result.

Get_Face_Name

function Get_Face_Name
   (Self : not null access Pango_Font_Face_Record) return UTF8_String

Gets a name representing the style of this face among the different faces in the Pango.Font_Family.Pango_Font_Family for the face. This name is unique among all faces in the family and is suitable for displaying to users.

Parameters
Self
Return Value

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

Get_Type

function Get_Type return Glib.GType
Return Value

Is_Synthesized

function Is_Synthesized
   (Self : not null access Pango_Font_Face_Record) return Boolean

Returns whether a Pango.Font_Face.Pango_Font_Face is synthesized by the underlying font rendering engine from another face, perhaps by shearing, emboldening, or lightening it. Since: gtk+ 1.18

Parameters
Self
Return Value

whether Face is synthesized.

List_Sizes

function List_Sizes
   (Self : not null access Pango_Font_Face_Record) return Gint_Array

List the available sizes for a font. This is only applicable to bitmap fonts. For scalable fonts, stores null at the location pointed to by Sizes and 0 at the location pointed to by N_Sizes. The sizes returned are in Pango units and are sorted in ascending order. Since: gtk+ 1.4

Parameters
Self
Return Value

Pango_Font_Face

type Pango_Font_Face is access all Pango_Font_Face_Record'Class;

Pango_Font_Face_Array

type Pango_Font_Face_Array is array (Natural range <>) of Pango_Font_Face;

Pango_Font_Face_Record

type Pango_Font_Face_Record is new GObject_Record with null record;