fix(markup): use installed math fonts for MathML in Chromium

Chromium maps the math font family to a single font per platform, which
Linux and ChromeOS don't install, so MathML falls back to a text font and
its brackets and large operators don't stretch. Keep the browser's choice
and fall back to the math fonts those systems ship, instead of bundling
a font.

Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
silverwind
2026-10-01 02:12:01 +02:00
parent 62e80124ce
commit 7388690e90
4 changed files with 6 additions and 38 deletions
-10
View File
@@ -5,16 +5,6 @@
overflow-wrap: break-word;
}
@font-face {
font-family: NewComputerModernMath;
src: local("NewComputerModernMath"), url("../../fonts/NewCMMath-Book.woff2") format("woff2");
}
.markup math {
font-family: NewComputerModernMath, "Latin Modern Math", "STIX Two Math", "Cambria Math", math;
font-size-adjust: ex-height 0.52;
}
.markup > *:first-child {
margin-top: 0 !important;
}