summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-10-29 08:05:07 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-10-29 08:05:07 -0400
commit46fc53896c67eaca25da0876ea7ee8160410fdd8 (patch)
tree5d7da21240e252d98571d1e292c58b4ebdaedc36 /pango/pango-layout.c
parentc09f70381d473fa4ac9e622ef42cc0479a095dc1 (diff)
downloadpango-46fc53896c67eaca25da0876ea7ee8160410fdd8.tar.gz
Flesh out some doc comments
Add some missing details about new enumerations and run baselines.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index f91b91d3..ba81adf6 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -7510,9 +7510,17 @@ pango_layout_iter_get_baseline (PangoLayoutIter *iter)
}
/**
- * pango_layout_iter_get_run_baseline
+ * pango_layout_iter_get_run_baseline:
* @iter: a `PangoLayoutIter`
*
+ * Gets the Y position of the current run's baseline, in layout
+ * coordinates.
+ *
+ * Layout coordinates have the origin at the top left of the entire layout.
+ *
+ * The run baseline can be different from the line baseline, for
+ * example due to superscript or subscript positioning.
+ *
* Since: 1.50
*/
int