Open gardenrobot opened 1 year ago
I self host NightScout with Podman, and I have tablets that display the clock view which are on a separate isolated network. This is an excellent change that makes it so devices on those isolated networks don't need any firewall exceptions for Google Font API servers.
This PR removes Google Fonts (from this issue) and bundles the used fonts (Ubuntu and Google's Open Sans distribution) into the repo. This makes Nightscout useable if access if Fonts is interrupted.
I took care to make sure there is no change to appearance. The only change is the italicized text in /admin. It now uses the italic font instead of slanting the normal font.
before:
after:
The woff2 files cache, and I have not found a noticable difference in load time.
Licensing
Both fonts allow distribution in open source projects:
https://github.com/googlefonts/opensans/blob/main/OFL.txt
https://ubuntu.com/legal/font-licence