mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-19 16:18:11 +00:00
In Firefox and in Chromium on Linux, the `math` font family resolves to Latin Modern Math when it is installed. Its hairline strokes are too thin for screens, so MathML looks noticeably weaker than KaTeX on the same page. List sturdier math fonts before `math`: Cambria Math, STIX Two Math, New Computer Modern Math Book (aliased via `local()` because it shares its family name with the thinner Regular), Libertinus Math and DejaVu Math TeX Gyre. `math` stays as the fallback before Noto Sans Math. No fonts are shipped, so systems with only Latin Modern Math, or no math font at all, are unchanged. Fixes: https://github.com/go-gitea/gitea/issues/39665 Co-authored-by: silverwind <me@silverwind.io>