diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 13:11:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 14:01:37 -0400 |
commit | e91c1861efa9cb680d092f50e9f32045607bfcae (patch) | |
tree | 16fa50e8123578cab66559e09d4f566696498fd7 /gtk/gtktextbuffer.c | |
parent | 4dc0e67ac741b65b559d262f44980225c0c0beec (diff) | |
download | gtk+-textview-baseline-shift.tar.gz |
wip: Add superscript and subscript to GtkTextTagtextview-baseline-shift
And update the markup demo to just use <sup>.
since it works now.
FIXME: this does not work since it does not accumulate.
Diffstat (limited to 'gtk/gtktextbuffer.c')
-rw-r--r-- | gtk/gtktextbuffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 4ec5fe6077..055b8505ca 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -4740,10 +4740,11 @@ insert_tags_for_attributes (GtkTextBuffer *buffer, INT_ATTR (baseline_shift); break; + /* Ignore font scale, since we treat baseline-shift as indicating + * both. And in practice, they will basically always occur together + * (from a <sup> or <sub>) + */ case PANGO_ATTR_FONT_SCALE: - INT_ATTR (font_scale); - break; - case PANGO_ATTR_SHAPE: case PANGO_ATTR_ABSOLUTE_SIZE: case PANGO_ATTR_GRAVITY: |