summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/fontify.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/fontify.c')
-rw-r--r--demos/gtk-demo/fontify.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/gtk-demo/fontify.c b/demos/gtk-demo/fontify.c
index cdbdf654d3..6f28e4c5b0 100644
--- a/demos/gtk-demo/fontify.c
+++ b/demos/gtk-demo/fontify.c
@@ -287,10 +287,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: