Basics
Guides
API Reference
Basics
Guides
API Reference
[166:14] static extends: object
Generated metadata helpers for FontFamily class surfaces.
properties ()
Returns property metadata for
FontFamily.
A list.[14:7] extends: object
A PangoFontFamily is used to represent a family of related font faces. The
font faces in a family share a common design, but differ in slant, weight,
width or other aspects.
FontFamily (Handle = null)
Creates a new
FontFamilyby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asListModel ()
Wraps this handle as
ListModel.
A ListModel object.get_face (string name)
Gets the
PangoFontFaceof @family with the given name.
name is the name of a face. If the name is %NULL, the family's default face (fontconfig calls it "Regular") will be returned..get_name ()
Gets the name of the family. The name is unique among all fonts for the font backend and can be used in a
PangoFontDescriptionto specify that a face from this family is desired.
is_monospace ()
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 [method@Pango.FontMetrics.get_approximate_digit_width], since the results of [method@Pango.FontMetrics.get_approximate_char_width] may be affected by double-width characters.
is_variable ()
A variable font is a font which has axes that can be modified to produce different faces. Such axes are also known as variations; see [method@Pango.FontDescription.set_variations] for more information.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.