diff options
| author | batsumaru <> | 2026-07-01 17:46:11 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-07-01 17:46:11 +0900 |
| commit | df56450813b04c09cd24783c6ae3093f189c4519 (patch) | |
| tree | df4ecdcceb569aadf145e15e47ded5ed079d2d79 /.gitattributes | |
| parent | 47bc0a5a7091bcf716ba1518b3c0ea18a64dc462 (diff) | |
Add scientifica bitmap font and wire it into the status page
Bundle scientifica.ttf/Bold/Italic in statuspage/fonts/ (dropped the
.bdf/.otb variants - those are X11/console bitmap formats, browsers
can't load them via @font-face). Mark font extensions as binary in
.gitattributes so git never attempts CRLF conversion on them.
render.sh now symlinks fonts/ into the Caddy-served output directory
on every run (idempotent) since Caddy serves /usr/local/www/status,
not this checkout - the font file has to physically exist next to
index.html for the browser to fetch it.
Also: fixed bad kerning/cramped line spacing from an earlier attempt
at applying the font's recommended Terminal.app settings (which don't
translate 1:1 to CSS), and added a hanging indent (.label class,
text-indent + padding-left) so long wrapped label text - notably
pf.sh's rule listing - aligns under the label instead of the status
square when it wraps to a second line.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to '.gitattributes')
| -rw-r--r-- | .gitattributes | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index dfdb8b7..01e53bc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,5 @@ *.sh text eol=lf +*.ttf binary +*.woff binary +*.woff2 binary +*.otf binary |
