From 74284f74f2f34cb42fb853aedb042df82dcf58dc Mon Sep 17 00:00:00 2001 From: Kate Meerburg Date: Mon, 25 May 2026 00:41:21 +0200 Subject: [PATCH] Increase font sizes and disable anti-aliasing for e-ink readability Adds Geist and Geist Mono to fontconfig with anti-aliasing disabled and full hinting for crisp rendering on e-ink. All font sizes scaled up 15% via a central FONT_SCALE factor for easy tuning. Co-Authored-By: Claude Opus 4.6 (1M context) --- fonts.conf | 2 +- src/todayview.tsx | 50 ++++++++++++++++++++++++----------------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/fonts.conf b/fonts.conf index ed8a725..aaf2e06 100644 --- a/fonts.conf +++ b/fonts.conf @@ -3,7 +3,7 @@ - NicoCleanNicoPupsInter VariableInter + NicoCleanNicoPupsInter VariableInterGeistGeist Mono false true none diff --git a/src/todayview.tsx b/src/todayview.tsx index c6f546c..6dc599f 100644 --- a/src/todayview.tsx +++ b/src/todayview.tsx @@ -68,6 +68,8 @@ export interface TodayConfig extends TodayData { const FONT_BODY = '"Geist", system-ui, sans-serif'; const FONT_MONO = '"Geist Mono", ui-monospace, monospace'; +const FONT_SCALE = 1.15; // scale factor for all font sizes +const fs = (px: number) => px * FONT_SCALE; const STYLES = ` @import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"); @@ -144,7 +146,7 @@ const SectionTitle = ({ {count != null && ( - + · {count} )} @@ -161,7 +163,7 @@ const SectionTitle = ({ (
(
{
{ {big}
-
+
{DOW[d.getDay()]}
{
- + {String(h).padStart(2, '0')}
@@ -388,7 +390,7 @@ const Agenda = ({ events, weather }: { events: AgendaEvent[]; weather?: WeatherD
@@ -490,7 +492,7 @@ const OverdueBadge = ({ days }: { days: number }) => ( height: 16, border: '1.5px solid var(--ink)', fontFamily: FONT_MONO, - fontSize: 9, + fontSize: fs(9), fontWeight: 600, lineHeight: 1, flex: '0 0 16px', @@ -523,7 +525,7 @@ const Chores = ({ items }: { items: ChoreItem[] }) => ( gap: 9, width: '100%', fontFamily: FONT_BODY, - fontSize: 13, + fontSize: fs(13), lineHeight: 1.2, fontWeight: 450, color: 'var(--ink)', @@ -535,7 +537,7 @@ const Chores = ({ items }: { items: ChoreItem[] }) => ( @@ -663,7 +665,7 @@ const Tasks = ({ style={{ fontFamily: FONT_MONO, fontWeight: 700, - fontSize: 14, + fontSize: fs(14), lineHeight: 1, transform: 'translateY(2px)', }}> @@ -672,7 +674,7 @@ const Tasks = ({