[pango/matthiasc/for-main: 3/4] test-itemize: Keep in sync with PangoLayout




commit 69c25b9cb70c73c0ec215170009185bfea60165d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 29 16:12:58 2021 -0400

    test-itemize: Keep in sync with PangoLayout
    
    This really needs some more generic treatment.
    
    Update affected test outputs.

 tests/itemize/two.expected | 14 +++++++-------
 tests/test-itemize.c       |  7 ++++---
 2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/tests/itemize/two.expected b/tests/itemize/two.expected
index 06518c88..5abb97b9 100644
--- a/tests/itemize/two.expected
+++ b/tests/itemize/two.expected
@@ -1,9 +1,9 @@
 <span font="Cantarell 11">one <span font_features="tnum=0">tw<u>o</u> <span 
font_features="dlig=1">two</span> </span>th<b>r</b>ee</span>
 
-Items:  one tw                    |o                                          | two th                       
                       |r                |ee          
-Chars:  6(0)                      |1(6)                                       |7(7)                          
                       |1(14)            |2(15)       
-Font:   Cantarell 11              |Cantarell 11                               |Cantarell 11                  
                       |Cantarell Bold 11|Cantarell 11
-Script: latin                     |latin                                      |latin                         
                       |latin            |latin       
-Lang:   en-us                     |en-us                                      |en-us                         
                       |en-us            |en-us       
-Bidi:   0                         |0                                          |0                             
                       |0                |0           
-Attrs:  
[4,12]font-features=tnum=0|[6,7]underline=1,[4,12]font-features=tnum=0|[8,11]font-features=dlig=1,[4,12]font-features=tnum=0|
                 |            
+Items:  one two two th                                                        |r                |ee          
+Chars:  14(0)                                                                 |1(14)            |2(15)       
+Font:   Cantarell 11                                                          |Cantarell Bold 11|Cantarell 11
+Script: latin                                                                 |latin            |latin       
+Lang:   en-us                                                                 |en-us            |en-us       
+Bidi:   0                                                                     |0                |0           
+Attrs:  [8,11]font-features=dlig=1,[6,7]underline=1,[4,12]font-features=tnum=0|                 |            
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 00af2256..db6a715f 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -74,11 +74,12 @@ affects_itemization (PangoAttribute *attr,
     case PANGO_ATTR_GRAVITY:
     case PANGO_ATTR_GRAVITY_HINT:
     /* These are part of ItemProperties, so need to break runs */
+    case PANGO_ATTR_LETTER_SPACING:
     case PANGO_ATTR_SHAPE:
     case PANGO_ATTR_RISE:
-    case PANGO_ATTR_UNDERLINE:
-    case PANGO_ATTR_STRIKETHROUGH:
-    case PANGO_ATTR_LETTER_SPACING:
+    case PANGO_ATTR_LINE_HEIGHT:
+    case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
+    case PANGO_ATTR_TEXT_TRANSFORM:
       return TRUE;
     default:
       return FALSE;


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