Skip to content

Commit

Permalink
Use dedicated fonts for better support of mathematical symbols (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes authored Aug 19, 2024
1 parent dc017c2 commit 215982a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 10 additions & 8 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ $table-bg: $secondary-lightest-background;
$td-enable-google-fonts: false;

/*
* Replace the default font with Inter.
*
* 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.
*
* The font itself is loaded via stylesheet link layouts/partials/hooks/head-end.html.
* 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)
*/
$font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", 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 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1919.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use dedicated fonts for better support of mathematical symbols.
2 changes: 1 addition & 1 deletion content/rooms/fragments/v2-state-res.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ chain for each state *S*<sub>*i*</sub>, that is the union of the auth
chains for each event in *S*<sub>*i*</sub>, and then taking every event
that doesn't appear in every auth chain. If *C*<sub>*i*</sub> is the
full auth chain of *S*<sub>*i*</sub>, then the auth difference is
∪ *C*<sub>*i*</sub> − ∩ *C*<sub>*i*</sub>.
∪ *C*<sub>*i*</sub> − ∩ *C*<sub>*i*</sub>.

**Full conflicted set.**
The *full conflicted set* is the union of the conflicted state set and
Expand Down

0 comments on commit 215982a

Please sign in to comment.