From 879bb673f5790e34a573401811dd0e8c707c1439 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Tue, 23 Feb 2021 22:09:06 +0000 Subject: [PATCH] =?UTF-8?q?Drop=20=C2=A3=20from=20text=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit £ is not an ASCII character and resulted in out of range mystery memory garbage being displayed. --- examples/pico_explorer/text_demo.cpp | 4 ++-- libraries/pico_graphics/font6_data.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/pico_explorer/text_demo.cpp b/examples/pico_explorer/text_demo.cpp index de122be4..971b8883 100644 --- a/examples/pico_explorer/text_demo.cpp +++ b/examples/pico_explorer/text_demo.cpp @@ -29,10 +29,10 @@ int main() { pico_explorer.set_pen(255, 255, 255); pico_explorer.set_font(&font6); pico_explorer.text("6x6: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 10), 220); - pico_explorer.text("0123456789 !£$%^&*()", Point(10, 70), 220); + pico_explorer.text("0123456789 !$%^&*()", Point(10, 70), 220); pico_explorer.set_font(&font8); pico_explorer.text("6x8: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 120), 220); - pico_explorer.text("0123456789 !£$%^&*()", Point(10, 180), 220); + pico_explorer.text("0123456789 !$%^&*()", Point(10, 180), 220); pico_explorer.update(); diff --git a/libraries/pico_graphics/font6_data.hpp b/libraries/pico_graphics/font6_data.hpp index 4a0c3214..574d729d 100644 --- a/libraries/pico_graphics/font6_data.hpp +++ b/libraries/pico_graphics/font6_data.hpp @@ -105,7 +105,7 @@ const pimoroni::Font font6 { 0x36,0x08,0x08,0x36,0x00,0x00, // x 0x26,0x28,0x28,0x1e,0x00,0x00, // y 0x32,0x2a,0x2a,0x26,0x00,0x00, // z - 0x08,0x3e,0x22,0x00,0x00,0x00, // 0x + 0x08,0x3e,0x22,0x00,0x00,0x00, // { 0x3e,0x00,0x00,0x00,0x00,0x00, // | 0x22,0x3e,0x08,0x00,0x00,0x00, // } 0x04,0x02,0x02,0x00,0x00,0x00, // ~