Skip to content

Commit

Permalink
fix(UI): Remove not loaded font (#7242)
Browse files Browse the repository at this point in the history
font-family settings always started with "Roboto-Regular" before
"Roboto", but we don't load "Roboto-Regular". It may exist already on
some systems, but we don't explicitly load it. We do explicitly load
"Roboto", so that should be the only Roboto-family font in the list.
This issue has been present since the very first introduction of our UI.
  • Loading branch information
avelad authored Sep 3, 2024
1 parent 464b317 commit 47f686f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ main.mdl-layout__content {

html, body {
/* Ensure everything has a consistent font. */
font-family: Roboto-Regular, Roboto, sans-serif, TengwarTelcontar;
font-family: Roboto, sans-serif, TengwarTelcontar;
}

// This font supports the Sindarin (sjn) translation.
Expand Down
2 changes: 1 addition & 1 deletion ui/less/containers.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/* Set the fonts for all other content. */
* {
font-family: Roboto-Regular, Roboto, sans-serif, TengwarTelcontar;
font-family: Roboto, sans-serif, TengwarTelcontar;
-webkit-font-smoothing: antialiased;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/less/tooltip.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
content: attr(aria-label);

/* Override .material-icons-round text styling */
font-family: Roboto-Regular, Roboto, sans-serif;
font-family: Roboto, sans-serif;
line-height: calc(@material-icons-width / 2);
white-space: nowrap;
font-size: 13px;
Expand Down

0 comments on commit 47f686f

Please sign in to comment.