mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Switch to STIX, Cambria, Noto and Dejavu for better support across platforms
This commit is contained in:
parent
eaaeb1de26
commit
06ee35b7c2
|
|
@ -42,16 +42,15 @@ $td-enable-google-fonts: false;
|
|||
/*
|
||||
* The $font-family-sans-serif definition here overrides the default value set by docsy
|
||||
* (https://github.com/matrix-org/docsy/blob/66a4e61d2d34edc7196b9df83a7d09cd4af14b47/assets/scss/_variables.scss#L68)
|
||||
* and:
|
||||
*
|
||||
* - Adds "Inter" to the front (making it the default)
|
||||
* - Inserts "Arial Unicode MS" before "Arial" (because the former contains more mathematical glyphs)
|
||||
*
|
||||
* The Inter font itself is loaded via stylesheet links layouts/partials/hooks/head-end.html.
|
||||
*/
|
||||
$font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial Unicode MS, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
||||
"Segoe UI Symbol";
|
||||
$font-family-sans-serif:
|
||||
// Add "Inter" to the front, making it the default. The font itself is loaded via stylesheet
|
||||
// links in layouts/partials/hooks/head-end.html.
|
||||
"Inter",
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
||||
// Insert fonts suited for mathematical symbols on different platforms before "Arial"
|
||||
"STIX Two Math", "Cambria Math", "Noto Sans Math", "Dejavu Sans",
|
||||
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
|
||||
// Disable smooth scrolling as it makes TOC highlighting jump during the transition.
|
||||
$enable-smooth-scroll: false;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Prefer Arial Unicode MS over Arial for better support of mathematical symbols.
|
||||
Use dedicated fonts for better support of mathematical symbols.
|
||||
|
|
|
|||
Loading…
Reference in a new issue