Index

Package: Font_Map

Description

package Pango.Font_Map is
An object that represents the set of fonts available for a particular rendering system

Classes

Pango_Font_Map_Record

type Pango_Font_Map_Record is new GObject_Record with null record;

Ancestors:

Primitive operations:

Create_Context
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
List_Families
Load_Fontset

Types

Pango_Font_Map

type Pango_Font_Map is access all Pango_Font_Map_Record'Class;

Subprograms & Entries

Get_Type

function Get_Type return Glib.GType;

Create_Context

function Create_Context 
(Self: not null access Pango_Font_Map_Record) return Pango.Context.Pango_Context;
Creates a Pango.Context.Pango_Context connected to Fontmap. This is equivalent to Pango.Context.Gdk_New followed by pango_context_set_font_map. If you are using Pango as part of a higher-level system, that system may have it's own way of create a Pango.Context.Pango_Context. For instance, the GTK+ toolkit has, among others, gdk_pango_context_get_for_screen, and Gtk.Widget.Get_Pango_Context. Use those instead. Since: gtk+ 1.22

Get_Serial

function Get_Serial 
(Self: not null access Pango_Font_Map_Record) return Guint;
Returns the current serial number of Fontmap. The serial number is initialized to an small number larger than zero when a new fontmap is created and is increased whenever the fontmap is changed. It may wrap, but will never have the value 0. Since it can wrap, never compare it with "less than", always use "not equals". The fontmap can only be changed using backend-specific API, like changing fontmap resolution. This can be used to automatically detect changes to a Pango.Font_Map.Pango_Font_Map, like in Pango.Context.Pango_Context. Since: gtk+ 1.32.4

List_Families

function List_Families 
(Self: not null access Pango_Font_Map_Record) return Pango_Font_Family_Array;
List all families for a fontmap.

Load_Font

function Load_Font 
(Self: not null access Pango_Font_Map_Record;
Context: not null access Pango.Context.Pango_Context_Record'Class;
Desc: Pango.Font.Pango_Font_Description) return Pango.Font.Pango_Font;
Load the font in the fontmap that is the closest match for Desc. "context": the Pango.Context.Pango_Context the font will be used with "desc": a Pango.Font.Pango_Font_Description describing the font to load

Load_Fontset

function Load_Fontset 
(Self: not null access Pango_Font_Map_Record;
Context: not null access Pango.Context.Pango_Context_Record'Class;
Desc: Pango.Font.Pango_Font_Description;
Language: Pango.Language.Pango_Language) return Pango.Fontset.Pango_Fontset;
Load a set of fonts in the fontmap that can be used to render a font matching Desc. "context": the Pango.Context.Pango_Context the font will be used with "desc": a Pango.Font.Pango_Font_Description describing the font to load "language": a Pango.Language.Pango_Language the fonts will be used for