summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-26 21:41:34 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-26 21:41:34 +0000
commit371171b65600729c3220826430ee1a0993541dbd (patch)
treedb689868eaf5ab534f24cfafce8bb1a985e6e821 /pango/glyphstring.c
parent51779502bcf60f771e2b6a52201013940f41d53d (diff)
parentcf6b3e1e84fe35f9b4f15f02a3a28e6f15312b96 (diff)
downloadpango-371171b65600729c3220826430ee1a0993541dbd.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
Tweak the drawing See merge request GNOME/pango!444
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index eb65875b..8d4aa604 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -370,8 +370,15 @@ pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs,
* Converts from character position to x position.
*
* The X position is measured from the left edge of the run.
- * Character positions are computed by dividing up each cluster
- * into equal portions.
+ * Character positions are obtained using font metrics for ligatures
+ * where available, and computed by dividing up each cluster
+ * into equal portions, otherwise.
+ *
+ * <picture>
+ * <source srcset="glyphstring-positions-dark.png" media="(prefers-color-scheme: dark)">
+ * <img alt="Glyph positions" src="glyphstring-positions-light.png">
+ * </picture>
+
*/
void
pango_glyph_string_index_to_x (PangoGlyphString *glyphs,