summaryrefslogtreecommitdiff
path: root/addons/theme_bootswatch/static/lib
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-04-01 14:14:44 +0000
committerMartin Trigaux <mat@odoo.com>2019-04-15 12:14:14 +0000
commit02a321cffb2da60a86b960e75c445e37094567b4 (patch)
treec16b9af9c41e1bdab9ae4cb1d62c9e843a48632a /addons/theme_bootswatch/static/lib
parent9ef33f4d4320f844851132e6317c642c40e6718f (diff)
[FIX] web: use specific font for Arabic, Hebrew and Cyrillic alphabet
The basic font-family offered on Odoo do not support a large set of characters and rely on the system fonts for non-latin languages On a system without specific fonts installed, the characters were replaced by � For Hebrew, the system sans-serif font (at least on Windows pc) was too small. Rely on the unicode-range range CSS descriptor to load a font only for a specific range of unicode code. https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range This way, the fonts are ignored for English text (and you don't have to load the fonts of every possible language). Add Noto fonts that covers many charsets. There is an heavy version for many charset and lighter ones for Arabic and Hebrew More ranges can be added later Serve the fonts on our CDN to avoid shipping several MB of fonts for everyone but lazyload it when needed. Fixes odoo/odoo#32228 Fixes odoo/odoo#21781
Diffstat (limited to 'addons/theme_bootswatch/static/lib')
-rw-r--r--addons/theme_bootswatch/static/lib/bootswatch/cyborg/_variables.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/theme_bootswatch/static/lib/bootswatch/cyborg/_variables.scss b/addons/theme_bootswatch/static/lib/bootswatch/cyborg/_variables.scss
index fda2a4bcc74..dc354a087ac 100644
--- a/addons/theme_bootswatch/static/lib/bootswatch/cyborg/_variables.scss
+++ b/addons/theme_bootswatch/static/lib/bootswatch/cyborg/_variables.scss
@@ -45,7 +45,7 @@ $body-color: $gray-500 !default;
// Fonts
-$font-family-sans-serif: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
+$font-family-sans-serif: "Roboto", "Noto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
$font-size-base: .875rem !default;