-
public Direction get_base_dir ()
Retrieves the base direction for the context. See
set_base_dir.
-
public Gravity get_base_gravity ()
-
public unowned FontDescription get_font_description ()
Retrieve the default font description for the context.
-
public weak FontMap get_font_map ()
Gets the PangoFontmap used to look up fonts for this context.
-
public Gravity get_gravity ()
Retrieves the gravity for the context. This is similar to
get_base_gravity, except for when the base gravity is
AUTO for which
gravity_get_for_matrix is used to return the gravity from the current context matrix.
-
public GravityHint get_gravity_hint ()
-
public unowned Language get_language ()
Retrieves the global language tag for the context.
-
public Matrix get_matrix ()
Gets the transformation matrix that will be applied when rendering with this context. See
set_matrix.
-
public FontMetrics get_metrics (FontDescription? desc, Language? language)
Get overall metric information for a particular font description. Since the metrics may be substantially
different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to
the script(s) used by that language.
-
public void list_families (out FontFamily[] families)
List all families for a context.
-
public weak Font load_font (FontDescription desc)
Loads the font in one of the fontmaps in the context that is the closest match for desc.
-
public weak Fontset load_fontset (FontDescription desc, Language language)
Load a set of fonts in the context that can be used to render a font matching desc.
-
public void set_base_dir (Direction direction)
Sets the base direction for the context.
-
public void set_base_gravity (Gravity gravity)
Sets the base gravity for the context.
-
public void set_font_description (FontDescription desc)
Set the default font description for the context
-
public void set_font_map (FontMap font_map)
Sets the font map to be searched when fonts are looked-up in this context. This is only for internal use
by Pango backends, a Context obtained via one of the recommended methods should already
have a suitable font map.
-
public void set_gravity_hint (GravityHint hint)
Sets the gravity hint for the context.
-
public void set_language (Language language)
Sets the global language tag for the context. The default language for the locale of the running process
can be found using get_default.
-
public void set_matrix (Matrix matrix)
Sets the transformation matrix that will be applied when rendering with this context. Note that reported
metrics are in the user space coordinates before the application of the matrix, not device-space coordinates after the application of
the matrix. So, they don't scale with the matrix, though they may change slightly for different matrices, depending on how the text is
fit to the pixel grid.