aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-10-24 18:18:40 -0500
committerraven <citrons@mondecitronne.com>2026-10-24 18:18:40 -0500
commit43faa97996efcc82613e99a5ba865976df3cb6de (patch)
tree2bd0168025ff61b653ce2c59706f8c06f2c057fc
parent0579cf856680da4782e6ac9f97650d85973713a1 (diff)
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.
-rw-r--r--apioforum/static/nasin-nanpa.otfbin0 -> 178796 bytes
-rw-r--r--apioforum/static/style.css13
2 files changed, 11 insertions, 2 deletions
diff --git a/apioforum/static/nasin-nanpa.otf b/apioforum/static/nasin-nanpa.otf
new file mode 100644
index 0000000..c843af6
--- /dev/null
+++ b/apioforum/static/nasin-nanpa.otf
Binary files 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");
+}
+