diff --git a/NotoSans-Greek-subset.woff2 b/NotoSans-Greek-subset.woff2 new file mode 100644 index 0000000..1ebed82 Binary files /dev/null and b/NotoSans-Greek-subset.woff2 differ diff --git a/NotoSansHebrew-subset.woff2 b/NotoSansHebrew-subset.woff2 new file mode 100644 index 0000000..4546904 Binary files /dev/null and b/NotoSansHebrew-subset.woff2 differ diff --git a/styles.css b/styles.css index fb72c31..f84f5bb 100644 --- a/styles.css +++ b/styles.css @@ -91,13 +91,31 @@ html[data-theme="light"] { unicode-range: U+2295-2296, U+263E; } +@font-face { + font-family: 'Noto Sans Greek'; + src: url('NotoSans-Greek-subset.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; + unicode-range: U+0375, U+03B1-03C1, U+03C3-03C9, U+03DB, U+03DF, U+03E1, U+1FFD, U+2070-2071, U+2074-2079, U+2080-2089, U+00B2-00B4, U+00B9; +} + +@font-face { + font-family: 'Noto Sans Hebrew'; + src: url('NotoSansHebrew-subset.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; + unicode-range: U+05D0-05EA, U+05F3-05F4; +} + html, body { height: 100%; overflow: hidden; } body { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Symbols 2', sans-serif; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Symbols 2', 'Noto Sans Greek', 'Noto Sans Hebrew', sans-serif; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; @@ -207,7 +225,7 @@ body { white-space: nowrap; color: var(--text-dim); font-size: 1.3rem; - font-family: 'Noto Sans Symbols 2', monospace; + font-family: 'Noto Sans Symbols 2', 'Noto Sans Greek', 'Noto Sans Hebrew', monospace; animation: ticker-scroll 40s linear infinite; } @@ -473,7 +491,7 @@ body { } .number-display.mono { - font-family: 'Noto Sans Symbols 2', monospace; + font-family: 'Noto Sans Symbols 2', 'Noto Sans Greek', 'Noto Sans Hebrew', monospace; } .ticker .slavonic-font { @@ -813,7 +831,7 @@ body { background: var(--bg-card); border-radius: 8px; padding: 16px; - font-family: 'Noto Sans Symbols 2', monospace; + font-family: 'Noto Sans Symbols 2', 'Noto Sans Greek', 'Noto Sans Hebrew', monospace; font-size: 1.1rem; margin: 12px 0; text-align: center; diff --git a/sw.js b/sw.js index 016558a..c3f5889 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'numnum-v28'; +const CACHE_NAME = 'numnum-v29'; const ASSETS = [ '/', '/index.html', @@ -12,6 +12,8 @@ const ASSETS = [ '/Ponomar-Regular.woff', '/NotoSansSymbols2-subset.woff2', '/NotoSansMath-subset.woff2', + '/NotoSans-Greek-subset.woff2', + '/NotoSansHebrew-subset.woff2', '/theory/base3.en.html', '/theory/base3.ru.html', '/theory/binary.en.html',