W Wrapl, The Programming Language

Libraries:Gtk:Pango:FontMap

Types

T

Inherits from:

Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:CreateContext(self @ T) : Gtk.Pango.Context.T

Creates a Gtk.Pango.Context.T connected to fontmap. This is equivalent to pango_context_new() followed by Gtk.Pango.Context.SetFontMap.

If you are using Pango as part of a higher-level system, that system may have it's own way of create a Gtk.Pango.Context.T. For instance, the GTK+ toolkit has, among others, Gtk.Gdk.Pango.ContextGetForScreen, and Gtk.Gtk.Widget.GetPangoContext. Use those instead.

fontmap a T
Returns the newly allocated Gtk.Pango.Context.T, which should be freed with g_object_unref(). [transfer full]


:ListFamilies(self @ T, families @ Std.Object.T, n_families @ Std.Object.T) : Std.Object.T

List all families for a fontmap.

fontmap a T
families location to store a pointer to an array of Gtk.Pango.FontFamily.T *. This array should be freed with g_free(). [out][array length=n_families]
n_families location to store the number of elements in families. [out]


:LoadFont(self @ T, context @ Gtk.Pango.Context.T, desc @ Gtk.Pango.FontDescription.T) : Gtk.Pango.Font.T

Load the font in the fontmap that is the closest match for desc.

fontmap a T
context the Gtk.Pango.Context.T the font will be used with
desc a Gtk.Pango.FontDescription.T describing the font to load
Returns the newly allocated Gtk.Pango.Font.T loaded, or NULL if no font matched. [transfer full]


:LoadFontset(self @ T, context @ Gtk.Pango.Context.T, desc @ Gtk.Pango.FontDescription.T, language @ Gtk.Pango.Language.T) : Gtk.Pango.Fontset.T

Load a set of fonts in the fontmap that can be used to render a font matching desc.

fontmap a T
context the Gtk.Pango.Context.T the font will be used with
desc a Gtk.Pango.FontDescription.T describing the font to load
language a Gtk.Pango.Language.T the fonts will be used for
Returns the newly allocated Gtk.Pango.Fontset.T loaded, or NULL if no font matched. [transfer full]