[pango/no-shape-attrs: 3/4] Don't treat rise as a no-shape attribute



commit 05b5d7e74c89047921eb7ae0dfd2fcccc2f1df45
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 28 21:39:23 2019 -0400

    Don't treat rise as a no-shape attribute
    
    It doesn't make sense to apply kerning between letters
    if they are not on the same baseline. This was not noticed
    so far, since it is very uncommon to have a rise without
    an accompanying font change, which will cause the run to
    be broken.

 pango/pango-layout.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index c58495c4..aa290038 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4085,6 +4085,7 @@ affects_itemization (PangoAttribute *attr,
     /* These need to be constant across runs */
     case PANGO_ATTR_LETTER_SPACING:
     case PANGO_ATTR_SHAPE:
+    case PANGO_ATTR_RISE:
       return TRUE;
     default:
       return FALSE;


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