[pango/no-shape-alpha] Leave some more attriute out of shaping



commit 73040dd9d8563aa44745c73833baeba41c465637
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 11 14:44:03 2019 -0400

    Leave some more attriute out of shaping
    
    We already count foreground and background color
    as no-shape attributes, so it makes sense to
    treat alpha the same.

 pango/pango-layout.c | 2 ++
 1 file changed, 2 insertions(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]