From 47f686faad05471bcd224e6db6bf820fc3b67afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Tue, 3 Sep 2024 08:56:45 +0200 Subject: [PATCH] fix(UI): Remove not loaded font (#7242) 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. --- demo/demo.less | 2 +- ui/less/containers.less | 2 +- ui/less/tooltip.less | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/demo.less b/demo/demo.less index b61fb6682c..d65b8683b1 100644 --- a/demo/demo.less +++ b/demo/demo.less @@ -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. diff --git a/ui/less/containers.less b/ui/less/containers.less index 56fba64460..fa51e9e535 100644 --- a/ui/less/containers.less +++ b/ui/less/containers.less @@ -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; } } diff --git a/ui/less/tooltip.less b/ui/less/tooltip.less index 8316a00737..f1b7ac1d38 100644 --- a/ui/less/tooltip.less +++ b/ui/less/tooltip.less @@ -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;