[vte/wip/l2-21235: 2/7] minifont: Expand hand-drawn range for L2/21-235




commit 1eacfc5b0f3b3068547bf2025b75f931ee1b8573
Author: Christian Persch <chpe src gnome org>
Date:   Thu Apr 7 16:44:09 2022 +0200

    minifont: Expand hand-drawn range for L2/21-235
    
    ... and make unimplemented glyphs clearly visible.

 src/minifont.cc | 6 +++++-
 src/minifont.hh | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/minifont.cc b/src/minifont.cc
index 418b1a1f..557e901b 100644
--- a/src/minifont.cc
+++ b/src/minifont.cc
@@ -1104,7 +1104,11 @@ Minifont::draw_graphic(DrawingContext const& context,
         }
 
         default:
-                g_assert_not_reached();
+                cairo_set_source_rgba (cr, 1., 0., 1., 1.);
+                cairo_rectangle(cr, x, y, width, height);
+                cairo_fill(cr);
+                break;
+                // g_assert_not_reached();
         }
 
         cairo_restore(cr);
diff --git a/src/minifont.hh b/src/minifont.hh
index 8f14f567..b539073f 100644
--- a/src/minifont.hh
+++ b/src/minifont.hh
@@ -39,7 +39,8 @@ public:
                 /* Box Drawing & Block Elements */
                 return ((c >=  0x2500 && c <=  0x259f) ||
                         (c >=  0x25e2 && c <=  0x25e5) ||
-                        (c >= 0x1fb00 && c <= 0x1fbaf));
+                        (c >= 0x1fb00 && c <= 0x1fbef) ||
+                        (c >= 0x1cc00 && c <= 0x1ceaf));
         }
 
         /* Draw the graphic representation of a line-drawing or special graphics


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