summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-01 13:11:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-01 14:01:37 -0400
commite91c1861efa9cb680d092f50e9f32045607bfcae (patch)
tree16fa50e8123578cab66559e09d4f566696498fd7 /gtk/gtktextattributes.c
parent4dc0e67ac741b65b559d262f44980225c0c0beec (diff)
downloadgtk+-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/gtktextattributes.c')
-rw-r--r--gtk/gtktextattributes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c
index 856b4f3310..16e18b3099 100644
--- a/gtk/gtktextattributes.c
+++ b/gtk/gtktextattributes.c
@@ -447,6 +447,9 @@ _gtk_text_attributes_fill_from_tags (GtkTextAttributes *dest,
if (tag->priv->sentence_set)
dest->sentence = vals->sentence;
+
+ if (tag->priv->baseline_shift_set)
+ dest->baseline_shift = vals->baseline_shift;
}
dest->left_margin += left_margin_accumulative;
@@ -477,7 +480,8 @@ _gtk_text_tag_affects_size (GtkTextTag *tag)
priv->invisible_set ||
priv->font_features_set ||
priv->letter_spacing_set ||
- priv->text_transform_set;
+ priv->text_transform_set ||
+ priv->baseline_shift_set;
}
gboolean