Commit: 2e8e7e4
Parent: 9068ac2

Use Cascadia Mono for the note editor

Mårten Åsberg committed on 2026-08-04 at 10:04
android:fontFamily="monospace" was rendering as an ugly serif-hybrid
on device rather than an actual monospace face. Bundles the static
Cascadia Mono Regular TTF (SIL OFL 1.1, embeddable) from Microsoft's
cascadia-code release and points the editor at it directly, sized
down to 16sp. Also switches the note list row's name/preview text
from monospace to sans-serif - list rows are UI chrome, not note
content, so they don't need to match the editor's raw-text font.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
src/Resources/font/cascadia_mono.ttf +0 -0
diff --git a/src/Resources/font/cascadia_mono.ttf b/src/Resources/font/cascadia_mono.ttf
new file mode 100644
index 0000000..e697d01
Binary files /dev/null and b/src/Resources/font/cascadia_mono.ttf differ
src/Resources/layout/activity_note_view.xml +2 -1
diff --git a/src/Resources/layout/activity_note_view.xml b/src/Resources/layout/activity_note_view.xml
index e34555d..73bd6fc 100644
@@ -30,7 +30,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:fontFamily="monospace"
android:textSize="16sp"
android:fontFamily="@font/cascadia_mono"
android:inputType="textMultiLine"
android:gravity="top|start"
android:background="@android:color/transparent"
src/Resources/layout/row_note.xml +2 -2
diff --git a/src/Resources/layout/row_note.xml b/src/Resources/layout/row_note.xml
index 3bf9ee6..36711e0 100644
@@ -14,13 +14,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:fontFamily="monospace"
android:fontFamily="sans-serif"
/>
<TextView
android:id="@+id/note_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="monospace"
android:fontFamily="sans-serif"
android:maxLines="3"
android:ellipsize="end"
android:paddingTop="4dp"