diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 11:41:53 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 11:41:53 +0000 |
commit | c1009a25f561f94bb71f78fe9353ed6c4238e3a7 (patch) | |
tree | a31d52c31aad9b5f6246591c4ede604631b8752e /pango/pango-glyph-item.h | |
parent | 44e5d0b2d435800516547be3c52af25190a918a5 (diff) | |
parent | a0cb9d5e75a78918ecbf9b71194d8cf229fd3aa7 (diff) | |
download | pango-c1009a25f561f94bb71f78fe9353ed6c4238e3a7.tar.gz |
Merge branch 'baseline-shift' into 'main'
Implement baseline shifts
See merge request GNOME/pango!462
Diffstat (limited to 'pango/pango-glyph-item.h')
-rw-r--r-- | pango/pango-glyph-item.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pango/pango-glyph-item.h b/pango/pango-glyph-item.h index 6c2f9249..fd8951d2 100644 --- a/pango/pango-glyph-item.h +++ b/pango/pango-glyph-item.h @@ -33,6 +33,12 @@ G_BEGIN_DECLS * PangoGlyphItem: * @item: corresponding `PangoItem` * @glyphs: corresponding `PangoGlyphString` + * @y_offset: shift of the baseline, relative to the baseline + * of the containing line. Positive values shift upwards + * @start_x_offset: horizontal displacement to apply before the + * glyph item. Positive values shift right + * @end_x_offset: horizontal displacement to apply after th + * glyph item. Positive values shift right * * A `PangoGlyphItem` is a pair of a `PangoItem` and the glyphs * resulting from shaping the items text. @@ -45,8 +51,11 @@ typedef struct _PangoGlyphItem PangoGlyphItem; struct _PangoGlyphItem { - PangoItem *item; + PangoItem *item; PangoGlyphString *glyphs; + int y_offset; + int start_x_offset; + int end_x_offset; }; #define PANGO_TYPE_GLYPH_ITEM (pango_glyph_item_get_type ()) |