diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-21 09:18:24 -0500 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-03-11 16:37:31 +0000 |
commit | e82d090bf51d563175d5f79a77982015ea6c95a5 (patch) | |
tree | b0ad4b9132b2bf825c302f4a7246ffc2c26caa57 /docs | |
parent | 9132f1831ce50177f35b7a3b6a98c8db0e20487c (diff) | |
download | gtk+-e82d090bf51d563175d5f79a77982015ea6c95a5.tar.gz |
docs: Add some links to the pango chapter
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gdk/pango.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/reference/gdk/pango.md b/docs/reference/gdk/pango.md index c439530156..98ada40780 100644 --- a/docs/reference/gdk/pango.md +++ b/docs/reference/gdk/pango.md @@ -9,17 +9,18 @@ GDK. Creating a `PangoLayout` object is the first step in rendering text, and requires getting a handle to a `PangoContext`. For GTK programs, -you’ll usually want to use `gtk_widget_get_pango_context()`, or -`gtk_widget_create_pango_layout()`. Once you have a `PangoLayout`, +you’ll usually want to use [method@Gtk.Widget.get_pango_context], or +[method@Gtk.Widget.create_pango_layout]. Once you have a `PangoLayout`, you can set the text and attributes of it with Pango functions like -`pango_layout_set_text()` and get its size with `pango_layout_get_size()`. +[method@Pango.Layout.set_text] and get its size with +[method@Pango.Layout.get_size]. *Note*: Pango uses a fixed point system internally, so converting between Pango units and pixels using `PANGO_SCALE` or the `PANGO_PIXELS()` macro. -Rendering a Pango layout is done most simply with `pango_cairo_show_layout()`; -you can also draw pieces of the layout with `pango_cairo_show_layout_line()`. +Rendering a Pango layout is done most simply with [func@PangoCairo.show_layout]; +you can also draw pieces of the layout with [func@PangoCairo.show_layout_line]. ### Draw transformed text with Pango and cairo |