[pango/avoid-overlong-lines: 5/11] layout: Fix a poblem with hyphen width




commit da2d9471c555362292d485d6eb7147300a03bddc
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 10 17:20:13 2021 -0500

    layout: Fix a poblem with hyphen width
    
    In some cases, we were forgetting to account
    for the width of a hyphen.

 pango/pango-layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 1a460d4c..c74e356a 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3790,7 +3790,7 @@ find_break_extra_width (PangoLayout    *layout,
   return 0;
 }
 
-#if 0
+#if 1
 # define DEBUG debug
 static int pango_layout_line_get_width (PangoLayoutLine *line);
 static void


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