diff --git a/static/css/fonts/download_google_fonts_css.py b/static/css/fonts/download_google_fonts_css.py index f903843e8..cfb5c0526 100755 --- a/static/css/fonts/download_google_fonts_css.py +++ b/static/css/fonts/download_google_fonts_css.py @@ -100,9 +100,9 @@ for line in original_contents: font_family, font_lang, font_style, font_weight ) font_filepath = font_output_dir + filename - with open(font_filepath, "w") as f: + with open(font_filepath, "wb") as f: print("Writing font file:", font_filepath) - f.write(resp.text) + f.write(resp.content) # Replace google URL with local URL line = re.sub(r"url\(.+\)", f"url({css_font_path + filename})", line) diff --git a/static/fonts/Inter-cyrillic-ext-normal-300.woff2 b/static/fonts/Inter-cyrillic-ext-normal-300.woff2 index 968dbbf3f..77f8fe74b 100644 Binary files a/static/fonts/Inter-cyrillic-ext-normal-300.woff2 and b/static/fonts/Inter-cyrillic-ext-normal-300.woff2 differ diff --git a/static/fonts/Inter-cyrillic-ext-normal-400.woff2 b/static/fonts/Inter-cyrillic-ext-normal-400.woff2 index bec815b95..0a28013d5 100644 Binary files a/static/fonts/Inter-cyrillic-ext-normal-400.woff2 and b/static/fonts/Inter-cyrillic-ext-normal-400.woff2 differ diff --git a/static/fonts/Inter-cyrillic-ext-normal-700.woff2 b/static/fonts/Inter-cyrillic-ext-normal-700.woff2 index 23a5988d6..a5658ff76 100644 Binary files a/static/fonts/Inter-cyrillic-ext-normal-700.woff2 and b/static/fonts/Inter-cyrillic-ext-normal-700.woff2 differ diff --git a/static/fonts/Inter-cyrillic-normal-300.woff2 b/static/fonts/Inter-cyrillic-normal-300.woff2 index c40ca1971..9863e9068 100644 Binary files a/static/fonts/Inter-cyrillic-normal-300.woff2 and b/static/fonts/Inter-cyrillic-normal-300.woff2 differ diff --git a/static/fonts/Inter-cyrillic-normal-400.woff2 b/static/fonts/Inter-cyrillic-normal-400.woff2 index 4480c6941..9b199dff8 100644 Binary files a/static/fonts/Inter-cyrillic-normal-400.woff2 and b/static/fonts/Inter-cyrillic-normal-400.woff2 differ diff --git a/static/fonts/Inter-cyrillic-normal-700.woff2 b/static/fonts/Inter-cyrillic-normal-700.woff2 index fecd9802e..e7c9b5c0b 100644 Binary files a/static/fonts/Inter-cyrillic-normal-700.woff2 and b/static/fonts/Inter-cyrillic-normal-700.woff2 differ diff --git a/static/fonts/Inter-greek-ext-normal-300.woff2 b/static/fonts/Inter-greek-ext-normal-300.woff2 index dbffc09b6..c5040704a 100644 Binary files a/static/fonts/Inter-greek-ext-normal-300.woff2 and b/static/fonts/Inter-greek-ext-normal-300.woff2 differ diff --git a/static/fonts/Inter-greek-ext-normal-400.woff2 b/static/fonts/Inter-greek-ext-normal-400.woff2 index 503ae66b3..2133c2aa0 100644 Binary files a/static/fonts/Inter-greek-ext-normal-400.woff2 and b/static/fonts/Inter-greek-ext-normal-400.woff2 differ diff --git a/static/fonts/Inter-greek-ext-normal-700.woff2 b/static/fonts/Inter-greek-ext-normal-700.woff2 index a7f82128f..11f082732 100644 Binary files a/static/fonts/Inter-greek-ext-normal-700.woff2 and b/static/fonts/Inter-greek-ext-normal-700.woff2 differ diff --git a/static/fonts/Inter-greek-normal-300.woff2 b/static/fonts/Inter-greek-normal-300.woff2 index ac8d7eab7..e2d53b38e 100644 Binary files a/static/fonts/Inter-greek-normal-300.woff2 and b/static/fonts/Inter-greek-normal-300.woff2 differ diff --git a/static/fonts/Inter-greek-normal-400.woff2 b/static/fonts/Inter-greek-normal-400.woff2 index 745fbd32b..3d2f76d32 100644 Binary files a/static/fonts/Inter-greek-normal-400.woff2 and b/static/fonts/Inter-greek-normal-400.woff2 differ diff --git a/static/fonts/Inter-greek-normal-700.woff2 b/static/fonts/Inter-greek-normal-700.woff2 index f2c621116..5b6ed5009 100644 Binary files a/static/fonts/Inter-greek-normal-700.woff2 and b/static/fonts/Inter-greek-normal-700.woff2 differ diff --git a/static/fonts/Inter-latin-ext-normal-300.woff2 b/static/fonts/Inter-latin-ext-normal-300.woff2 index ea63a77dc..bf5bc6474 100644 Binary files a/static/fonts/Inter-latin-ext-normal-300.woff2 and b/static/fonts/Inter-latin-ext-normal-300.woff2 differ diff --git a/static/fonts/Inter-latin-ext-normal-400.woff2 b/static/fonts/Inter-latin-ext-normal-400.woff2 index 483a3d0de..ef110cb8c 100644 Binary files a/static/fonts/Inter-latin-ext-normal-400.woff2 and b/static/fonts/Inter-latin-ext-normal-400.woff2 differ diff --git a/static/fonts/Inter-latin-ext-normal-700.woff2 b/static/fonts/Inter-latin-ext-normal-700.woff2 index 26761af10..b42f8b12a 100644 Binary files a/static/fonts/Inter-latin-ext-normal-700.woff2 and b/static/fonts/Inter-latin-ext-normal-700.woff2 differ diff --git a/static/fonts/Inter-latin-normal-300.woff2 b/static/fonts/Inter-latin-normal-300.woff2 index 758703fc1..605d1b2d9 100644 Binary files a/static/fonts/Inter-latin-normal-300.woff2 and b/static/fonts/Inter-latin-normal-300.woff2 differ diff --git a/static/fonts/Inter-latin-normal-400.woff2 b/static/fonts/Inter-latin-normal-400.woff2 index 8ff30ee10..b5db4467b 100644 Binary files a/static/fonts/Inter-latin-normal-400.woff2 and b/static/fonts/Inter-latin-normal-400.woff2 differ diff --git a/static/fonts/Inter-latin-normal-700.woff2 b/static/fonts/Inter-latin-normal-700.woff2 index ce4cb16a9..f6215ed24 100644 Binary files a/static/fonts/Inter-latin-normal-700.woff2 and b/static/fonts/Inter-latin-normal-700.woff2 differ diff --git a/static/fonts/Inter-vietnamese-normal-300.woff2 b/static/fonts/Inter-vietnamese-normal-300.woff2 index 5a9656a10..707bb8055 100644 Binary files a/static/fonts/Inter-vietnamese-normal-300.woff2 and b/static/fonts/Inter-vietnamese-normal-300.woff2 differ diff --git a/static/fonts/Inter-vietnamese-normal-400.woff2 b/static/fonts/Inter-vietnamese-normal-400.woff2 index 022a0ee2c..c9fa5c598 100644 Binary files a/static/fonts/Inter-vietnamese-normal-400.woff2 and b/static/fonts/Inter-vietnamese-normal-400.woff2 differ diff --git a/static/fonts/Inter-vietnamese-normal-700.woff2 b/static/fonts/Inter-vietnamese-normal-700.woff2 index a66d145fe..0dfa08501 100644 Binary files a/static/fonts/Inter-vietnamese-normal-700.woff2 and b/static/fonts/Inter-vietnamese-normal-700.woff2 differ