diff --git a/static/css/fonts/download_google_fonts_css.py b/static/css/fonts/download_google_fonts_css.py index f903843e..cfb5c052 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 968dbbf3..77f8fe74 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 bec815b9..0a28013d 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 23a5988d..a5658ff7 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 c40ca197..9863e906 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 4480c694..9b199dff 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 fecd9802..e7c9b5c0 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 dbffc09b..c5040704 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 503ae66b..2133c2aa 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 a7f82128..11f08273 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 ac8d7eab..e2d53b38 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 745fbd32..3d2f76d3 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 f2c62111..5b6ed500 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 ea63a77d..bf5bc647 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 483a3d0d..ef110cb8 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 26761af1..b42f8b12 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 758703fc..605d1b2d 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 8ff30ee1..b5db4467 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 ce4cb16a..f6215ed2 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 5a9656a1..707bb805 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 022a0ee2..c9fa5c59 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 a66d145f..0dfa0850 100644 Binary files a/static/fonts/Inter-vietnamese-normal-700.woff2 and b/static/fonts/Inter-vietnamese-normal-700.woff2 differ