GObject.Object
Pango.Context
Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.Context |
Class : | Context |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Pango.Context
()
Create a new Pango.Context
Create a new Pango.Context
|
||
get_base_dir
()
:
Pango.Direction
Retrieves the base direction for the context.
Retrieves the base direction for the context. See
pango_context_set_base_dir().
|
Pango.Context | |
get_base_gravity
()
:
Pango.Gravity
Retrieves the base gravity for the context.
Retrieves the base gravity for the context. See
pango_context_set_base_gravity().
|
Pango.Context | |
get_font_description
()
:
Pango.FontDescription
Retrieve the default font description for the context.
Retrieve the default font description for the context.
This value must not be modified or freed.
|
Pango.Context | |
get_gravity
()
:
Pango.Gravity
Retrieves the gravity for the context.
Retrieves the gravity for the context. This is similar to
pango_context_get_base_gravity(), except for when the base gravity is PANGO_GRAVITY_AUTO for which pango_gravity_get_for_matrix() is used to return the gravity from the current context matrix.
|
Pango.Context | |
get_gravity_hint
()
:
Pango.GravityHint
Retrieves the gravity hint for the context.
Retrieves the gravity hint for the context. See
pango_context_set_gravity_hint() for details.
|
Pango.Context | |
get_language
()
:
Pango.Language
Retrieves the global language tag for the context.
Retrieves the global language tag for the context.
|
Pango.Context | |
get_matrix
()
:
Pango.Matrix
Gets the transformation matrix that will be applied when
rendering with this context.
Gets the transformation matrix that will be applied when
rendering with this context. See pango_context_set_matrix(). (which is the same as the identity matrix). The returned matrix is owned by Pango and must not be modified or freed.
|
Pango.Context | |
Get overall metric information for a particular font
description.
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. The PangoFontDescription is interpreted in the same way as by pango_itemize(), and the family name may be a comma separated list of figures. If characters from multiple of these families would be used to render the string, then the returned fonts would be a composite of the metrics for the fonts loaded for the individual families. when finished using the object.
|
Pango.Context | |
list_families
(FontFamily families, gint32 n_families)
:
none
List all families for a context.
List all families for a context.
|
Pango.Context | |
set_base_dir
(Direction direction)
:
none
Sets the base direction for the context.
Sets the base direction for the context.
The base direction is used in applying the Unicode bidirectional algorithm; if the direction is PANGO_DIRECTION_LTR or PANGO_DIRECTION_RTL, then the value will be used as the paragraph direction in the Unicode bidirectional algorithm. A value of PANGO_DIRECTION_WEAK_LTR or PANGO_DIRECTION_WEAK_RTL is used only for paragraphs that do not contain any strong characters themselves.
|
Pango.Context | |
set_base_gravity
(Gravity gravity)
:
none
Sets the base gravity for the context.
Sets the base gravity for the context.
The base gravity is used in laying vertical text out.
|
Pango.Context | |
set_font_description
(FontDescription desc)
:
none
Set the default font description for the context
Set the default font description for the context
|
Pango.Context | |
set_font_map
(FontMap font_map)
:
none
Sets the font map to be searched when fonts are looked-up in this context.
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 PangoContext obtained via one of the recommended methods should already have a suitable font map.
|
Pango.Context | |
set_gravity_hint
(GravityHint hint)
:
none
Sets the gravity hint for the context.
Sets the gravity hint for the context.
The gravity hint is used in laying vertical text out, and is only relevant if gravity of the context as returned by pango_context_get_gravity() is set PANGO_GRAVITY_EAST or PANGO_GRAVITY_WEST.
|
Pango.Context | |
set_language
(Language language)
:
none
Sets the global language tag for the context.
Sets the global language tag for the context. The default language
for the locale of the running process can be found using pango_language_get_default().
|
Pango.Context | |
set_matrix
(Matrix matrix)
:
none
Sets the transformation matrix that will be applied when rendering
with this context.
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.
|
Pango.Context |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.Actor
Method |
create_pango_context
()
:
Pango.Context
Creates a PangoContext for the given actor.
|
Clutter.Actor
Method |
get_pango_context
()
:
Pango.Context
Retrieves the PangoContext for self.
|
Gdk
Method |
Gdk.pango_context_get
()
:
Pango.Context
Creates a PangoContext for the default GDK screen.
|
Gdk
Method |
Creates a PangoContext for screen.
|
Gtk.PrintContext
Method |
create_pango_context
()
:
Pango.Context
Creates a new PangoContext that can be used with the
GtkPrintContext. |
Gtk.Widget
Method |
create_pango_context
()
:
Pango.Context
Creates a new PangoContext with the appropriate font map,
font description, and base direction for drawing text for this widget. |
Gtk.Widget
Method |
get_pango_context
()
:
Pango.Context
Gets a PangoContext with the appropriate font map, font description,
and base direction for this widget. |
Pango.Layout
Method |
Create a new Pango.Layout
|
Pango.Layout
Method |
get_context
()
:
Pango.Context
Retrieves the PangoContext used for this layout.
|
PangoCairo
Method |
Retrieves any font rendering options previously set with
pango_cairo_font_map_set_font_options(). |
PangoCairo
Method |
Gets the resolution for the context.
|
PangoCairo
Method |
Sets the font options used when rendering text with this context.
|
PangoCairo
Method |
Sets the resolution for the context.
|
PangoCairo
Method |
PangoCairo.context_set_shape_renderer
(Context context, Function func, void* data, Function dnotify)
:
none
Sets callback function for context to use for rendering attributes
of type PANGO_ATTR_SHAPE. |
PangoCairo
Method |
Updates a PangoContext previously created for use with Cairo to
match the current transformation and target surface of a Cairo context. |