[pango/visible-things: 35/35] itemize: Don't change font for line separator



commit bc54304cc26d3f927684670a8df4e971502b6c48
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 8 16:29:26 2019 -0400

    itemize: Don't change font for line separator
    
    If we render this (in single-paragraph mode), we
    draw a hex box, so changing font just for the line
    separator is never useful, and in fact, counterproductive
    in cases where the font has a (typically empty) glyph
    for it.
    
    This fixes the [LS] hex box not showing up in
    single-paragraph mode depending on font fallback.

 pango/pango-context.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 83fdc9a6..69523437 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1498,6 +1498,7 @@ itemize_state_process_run (ItemizeState *state)
       if (G_UNLIKELY (type == G_UNICODE_CONTROL ||
                       type == G_UNICODE_FORMAT ||
                       type == G_UNICODE_SURROGATE ||
+                      type == G_UNICODE_LINE_SEPARATOR ||
                       (type == G_UNICODE_SPACE_SEPARATOR && wc != 0x1680u /* OGHAM SPACE MARK */) ||
                       (wc >= 0xfe00u && wc <= 0xfe0fu) ||
                       (wc >= 0xe0100u && wc <= 0xe01efu)))


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