summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-11 14:44:03 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-11 14:49:12 -0400
commita8c2e5713ed8e7d0a4eb467bad2f4eeef78d9b26 (patch)
tree10c5059dc27cf173c2f06b597fa09dd6d04b31f0
parent482c7d75ec0b228dffc4c8522a3b8666cc5aff61 (diff)
downloadpango-a8c2e5713ed8e7d0a4eb467bad2f4eeef78d9b26.tar.gz
Leave some more attributes out of shaping
We already count foreground and background color as no-shape attributes, so it makes sense to treat alpha the same.
-rw-r--r--pango/pango-layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 2b07954e..2384d6b0 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4001,6 +4001,8 @@ no_shape_filter_func (PangoAttribute *attribute,
static const PangoAttrType no_shape_types[] = {
PANGO_ATTR_FOREGROUND,
PANGO_ATTR_BACKGROUND,
+ PANGO_ATTR_FOREGROUND_ALPHA,
+ PANGO_ATTR_BACKGROUND_ALPHA,
PANGO_ATTR_UNDERLINE,
PANGO_ATTR_STRIKETHROUGH,
PANGO_ATTR_RISE