From de14b8418f74856d00717f743412d1d6b06b53c1 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 5 Jul 2026 17:57:29 +0200 Subject: [PATCH] feat(editor): use ISO-8859-15 font for accented glyphs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swap the mono font from the ascii subset to iso_8859_15 (Latin-9) so à é ê ç … œ € have glyphs. Cell size is identical, so ASCII rendering is byte-for-byte unchanged; groundwork for v0.2.5 international input. --- firmware/src/editor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/src/editor.rs b/firmware/src/editor.rs index 0259972..1af89e0 100644 --- a/firmware/src/editor.rs +++ b/firmware/src/editor.rs @@ -7,7 +7,10 @@ //! on the logical (`\n`-delimited) buffer; word-wrapping and scrolling are a //! render-time concern handled by [`Editor::draw`]. -use embedded_graphics::mono_font::ascii::{FONT_6X10, FONT_10X20}; +// ISO-8859-15 (Latin-9) rather than the ascii subset: same glyph cells, but it +// carries the accented Latin glyphs (à é ê ç … plus œ €) that international +// input will emit. ASCII rendering is byte-for-byte unchanged. +use embedded_graphics::mono_font::iso_8859_15::{FONT_6X10, FONT_10X20}; use embedded_graphics::mono_font::MonoTextStyle; use embedded_graphics::pixelcolor::BinaryColor; use embedded_graphics::prelude::*;