diff --git a/frontend/scripts/fonts-subset.sh b/frontend/scripts/fonts-subset.sh index fe5d18332..fd48fdc39 100755 --- a/frontend/scripts/fonts-subset.sh +++ b/frontend/scripts/fonts-subset.sh @@ -34,15 +34,18 @@ trap err_report ERR mkdir -p $TEMP_FOLDER -# the latin subset that google uses on GoogleFonts -# this is the same as the latin subset range that google uses on GoogleFonts -# see for examle the unicode-range definition here: -# https://fonts.googleapis.com/css2?family=Open+Sans -# Include the basic latin range plus latin-ext characters so glyphs with -# diacritics (used for example in Polish) are present in the generated fonts. +# Includes basic Latin, extended Latin, Cyrillic, CJK, Arabic, Hebrew, and other scripts +# to support all languages supported by Vikunja UNICODE_LATIN_SUBSET="U+0000-00FF,U+0100-017F,U+0131,U+0152-0153,U+02BB-02BC,\ U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,\ -U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD" +U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,\ +U+0180-024F,U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,\ +U+1EA0-1EF9,U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F,\ +U+4E00-9FFF,U+3400-4DBF,U+20000-2A6DF,U+2A700-2B73F,U+2B740-2B81F,U+2B820-2CEAF,\ +U+3040-309F,U+30A0-30FF,U+31F0-31FF,U+3200-32FF,U+3300-33FF,U+FF00-FFEF,\ +AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF,\ +U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,\ +U+0590-05FF,U+FB1D-FB4F" get_filename_without_type() { filename=$1 diff --git a/frontend/src/assets/fonts/OpenSans-Italic[wght]_efd8026f.woff2 b/frontend/src/assets/fonts/OpenSans-Italic[wght]_efd8026f.woff2 deleted file mode 100644 index a77de7031..000000000 Binary files a/frontend/src/assets/fonts/OpenSans-Italic[wght]_efd8026f.woff2 and /dev/null differ diff --git a/frontend/src/assets/fonts/OpenSans-Italic[wght]_f8c82d6f.woff2 b/frontend/src/assets/fonts/OpenSans-Italic[wght]_f8c82d6f.woff2 new file mode 100644 index 000000000..1a2bf7fc0 Binary files /dev/null and b/frontend/src/assets/fonts/OpenSans-Italic[wght]_f8c82d6f.woff2 differ diff --git a/frontend/src/assets/fonts/OpenSans[wght]_0f3a8072.woff2 b/frontend/src/assets/fonts/OpenSans[wght]_0f3a8072.woff2 new file mode 100644 index 000000000..f338bddb8 Binary files /dev/null and b/frontend/src/assets/fonts/OpenSans[wght]_0f3a8072.woff2 differ diff --git a/frontend/src/assets/fonts/OpenSans[wght]_e4849d7d.woff2 b/frontend/src/assets/fonts/OpenSans[wght]_e4849d7d.woff2 deleted file mode 100644 index a997b1751..000000000 Binary files a/frontend/src/assets/fonts/OpenSans[wght]_e4849d7d.woff2 and /dev/null differ diff --git a/frontend/src/assets/fonts/Quicksand[wght]_6d82d68f.woff2 b/frontend/src/assets/fonts/Quicksand[wght]_6d82d68f.woff2 deleted file mode 100644 index 0febc0ad0..000000000 Binary files a/frontend/src/assets/fonts/Quicksand[wght]_6d82d68f.woff2 and /dev/null differ diff --git a/frontend/src/assets/fonts/Quicksand[wght]_a912b486.woff2 b/frontend/src/assets/fonts/Quicksand[wght]_a912b486.woff2 new file mode 100644 index 000000000..0769a4646 Binary files /dev/null and b/frontend/src/assets/fonts/Quicksand[wght]_a912b486.woff2 differ diff --git a/frontend/src/styles/fonts.scss b/frontend/src/styles/fonts.scss index 376394819..41e935921 100644 --- a/frontend/src/styles/fonts.scss +++ b/frontend/src/styles/fonts.scss @@ -9,8 +9,8 @@ $unicode-range: "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,\ @font-face { font-family: 'Quicksand'; - src: url($font-files-path + 'Quicksand[wght]_6d82d68f.woff2') format('woff2-variations'); - src: url($font-files-path + 'Quicksand[wght]_6d82d68f.woff2') format('woff2') tech('variations'); + src: url($font-files-path + 'Quicksand[wght]_a912b486.woff2') format('woff2-variations'); + src: url($font-files-path + 'Quicksand[wght]_a912b486.woff2') format('woff2') tech('variations'); font-style: normal; font-weight: 400 700; font-display: swap; @@ -19,8 +19,8 @@ $unicode-range: "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,\ @font-face { font-family: 'Open Sans'; - src: url($font-files-path + 'OpenSans[wght]_e4849d7d.woff2') format('woff2-variations'); - src: url($font-files-path + 'OpenSans[wght]_e4849d7d.woff2') format('woff2') tech('variations'); + src: url($font-files-path + 'OpenSans[wght]_0f3a8072.woff2') format('woff2-variations'); + src: url($font-files-path + 'OpenSans[wght]_0f3a8072.woff2') format('woff2') tech('variations'); font-weight: 400 700; font-display: swap; unicode-range: $unicode-range; @@ -28,8 +28,8 @@ $unicode-range: "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,\ @font-face { font-family: 'Open Sans'; - src: url($font-files-path + 'OpenSans-Italic[wght]_efd8026f.woff2') format('woff2-variations'); - src: url($font-files-path + 'OpenSans-Italic[wght]_efd8026f.woff2') format('woff2') tech('variations'); + src: url($font-files-path + 'OpenSans-Italic[wght]_f8c82d6f.woff2') format('woff2-variations'); + src: url($font-files-path + 'OpenSans-Italic[wght]_f8c82d6f.woff2') format('woff2') tech('variations'); font-weight: 400 700; font-style: italic; font-display: swap;