From 2fa72ee0dc67d973330aec4ba98260e9f57f7821 Mon Sep 17 00:00:00 2001 From: Lena Date: Thu, 1 Jan 2026 00:00:00 +0000 Subject: Enter mouseboard Keyboard-only pointing: a labelled grid over every monitor, type a label to jump to a cell, bisect it by quadrant until the crosshair is exact, then one key clicks. The coarse grid keeps labels short and bisection keeps precision unlimited, so a hotkey and a few keystrokes replace the mouse. The core talks only to the backend interface in platform.h; wlroots Wayland and Win32 backends supply the overlay, keyboard grab and pointer. --- font.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 font.c (limited to 'font.c') diff --git a/font.c b/font.c new file mode 100644 index 0000000..035d330 --- /dev/null +++ b/font.c @@ -0,0 +1,16 @@ +/* font.c - the embedded font table. */ +#include "font.h" + +/* Public-domain 8x8 VGA font by Daniel Hepper / Marcel Sondaar / IBM. + * Vendored verbatim; included here only, so the table has one definition. */ +#include "font8x8_basic.h" + +static const unsigned char blank[FONT_H] = { 0 }; + +const unsigned char *font_glyph(char c) +{ + unsigned char u = (unsigned char)c; + if (u >= 128) + return blank; + return (const unsigned char *)font8x8_basic[u]; +} -- cgit v1.2.3