From 43faa97996efcc82613e99a5ba865976df3cb6de Mon Sep 17 00:00:00 2001 From: raven Date: Sat, 24 Oct 2026 18:18:40 -0500 Subject: add nasin nanpa fallback font to support sitelen pona I find this font ugly, and I prefer nishiki teki, but nishiki teki is 11 megabytes, and that would be quite unacceptable. --- apioforum/static/nasin-nanpa.otf | Bin 0 -> 178796 bytes apioforum/static/style.css | 13 +++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 apioforum/static/nasin-nanpa.otf diff --git a/apioforum/static/nasin-nanpa.otf b/apioforum/static/nasin-nanpa.otf new file mode 100644 index 0000000..c843af6 Binary files /dev/null and b/apioforum/static/nasin-nanpa.otf differ diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 01b9339..3f07d9e 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -1,7 +1,7 @@ body { margin: 0; padding: 8px; - font-family: sans-serif; + font-family: sans-serif, nasin-nanpa; word-wrap: break-word; min-width: 400px; } @@ -509,4 +509,13 @@ textarea { body { background-color: var(--light-colour); color: var(--dark-colour); } } - + +textarea { + font-family: monospace, nasin-nanpa; +} + +@font-face { + font-family: nasin-nanpa; + src: local(nasin-nanpa), url("nasin-nanpa.otf") format("opentype"); +} + -- cgit v1.2.3