DistributedProofreaders / dproofreaders

Distributed Proofreaders is a web application intended to ease the process of converting public domain books into e-texts.
https://www.pgdp.net
GNU General Public License v2.0
46 stars 28 forks source link

Embed garamond font #1220

Closed cpeel closed 1 month ago

cpeel commented 1 month ago

Bundle EB Garamond rather than relying on Google's gstatic.com. This removes yet another live 3rd-party dependency.

Back in 2020 when this was added it wasn't clear from Google's Fonts licensing if this is possible, but it's very clear now as:

  1. they offer an option to download the fonts
  2. provide docs on how to self-host it
  3. This copy of EBGaramond is explicitly under the SIL according to its Github account.

https://www.pgdp.org/~cpeel/c.branch/embed-garamond-font/

cpeel commented 1 month ago

After a Slack discussion I've changed the TTF to a WOFF2 which makes it smaller both in git and on the wire.