summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-26 10:56:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-26 10:56:37 -0400
commitc98409c7715124bd8eb5f738e8954cb21766b8f2 (patch)
tree9d7f751dd21adc462cba3c4e8261c8bb45d63dcb /pango/pango-layout.c
parentacf49ff404f763b4f5be97bb106df0bb431bef1a (diff)
downloadpango-c98409c7715124bd8eb5f738e8954cb21766b8f2.tar.gz
docs: Add another illustration
Show cursor positions.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 6b14a5dd..f88581f1 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2541,6 +2541,11 @@ pango_layout_get_direction (PangoLayout *layout,
* The position of each cursor is stored as a zero-width rectangle
* with the height of the run extents.
*
+ * <picture>
+ * <source srcset="cursor-positions-dark.png" media="(prefers-color-scheme: dark)">
+ * <img alt="Cursor positions" src="cursor-positions-light.png">
+ * </picture>
+ *
* The strong cursor location is the location where characters of the
* directionality equal to the base direction of the layout are inserted.
* The weak cursor location is the location where characters of the
@@ -2550,7 +2555,7 @@ pango_layout_get_direction (PangoLayout *layout,
*
* <picture>
* <source srcset="split-cursor-dark.png" media="(prefers-color-scheme: dark)">
- * <img alt="strong and weak cursors" src="split-cursor-light.png">
+ * <img alt="Strong and weak cursors" src="split-cursor-light.png">
* </picture>
*
* The strong cursor has a little arrow pointing to the right, the weak