W Wrapl, The Programming Language




Inherits from:


Nil : T


GetType() : Gtk.GObject.Type.T


:Describe(self @ T) : Gtk.Pango.FontDescription.T

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

face a T
Returns a newly-created Gtk.Pango.FontDescription.T structure holding the description of the face. Use Gtk.Pango.FontDescription.Free to free the result.

:GetFaceName(self @ T) : Std.String.T

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

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

:IsSynthesized(self @ T) : Std.Symbol.T

Returns whether a T is synthesized by the underlying font rendering engine from another face, perhaps by shearing, emboldening, or lightening it.

face a T
Returns whether face is synthesized.

:ListSizes(self @ T, sizes @ Std.Object.T, n_sizes @ Std.Object.T) : Std.Object.T

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.

face a T.
sizes location to store a pointer to an array of int. This array should be freed with g_free().
n_sizes location to store the number of elements in sizes