From 80b99b0ffdf7ee72d4236074202f33d5c7975937 Mon Sep 17 00:00:00 2001 From: mat ess Date: Sat, 13 Aug 2022 21:27:52 -0400 Subject: [PATCH] Disable variable fonts --- config.toml | 5 +++-- sass/style/main.scss | 13 +++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config.toml b/config.toml index 8a79753..3a799ae 100644 --- a/config.toml +++ b/config.toml @@ -29,9 +29,10 @@ use_cdn = true cdns = [ { url = "https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.min.css", hash = "sWIpcFPnJFfPqQU7FWn8H9+Xax/h5ihI8hVjQTBa5WmUde6CZZLw9DUAaIyA6j5u" }, { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/static/pretendard-std-dynamic-subset.min.css", hash = "UzN3sOqBetZN9G2CDFfxg1PNJ+Qrv8/HZIoBp6XsCD+2DOehpvXGqkj2WFCNge5Q" }, - { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/variable/pretendardvariable-std.min.css", hash = "3OYJp8uUv2MJWyKGgrZOrSjf+WP+nD7ifpJ04kAsI02PYi+nghC4TF37YkN/2Qxt" }, { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Webfonts/index.min.css", hash = "Vx6OU3QBwm96rTUebUtdfD/AW3d3uzT896pixaUYg9Nb87zqHuXmjmv9aGwBmFjP" }, - { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Variable/index.min.css", hash = "sFJyxW2UhZcJ0SAweDcoU6dBgqox5PbLK5nZStQSQitBeRHigPu7OPWDvoIHEXeo" }, + # Disabling variable fonts to bring site weight down + # { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/variable/pretendardvariable-std.min.css", hash = "3OYJp8uUv2MJWyKGgrZOrSjf+WP+nD7ifpJ04kAsI02PYi+nghC4TF37YkN/2Qxt" }, + # { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Variable/index.min.css", hash = "sFJyxW2UhZcJ0SAweDcoU6dBgqox5PbLK5nZStQSQitBeRHigPu7OPWDvoIHEXeo" }, ] menu = [ diff --git a/sass/style/main.scss b/sass/style/main.scss index ac73cb8..d921642 100644 --- a/sass/style/main.scss +++ b/sass/style/main.scss @@ -14,12 +14,13 @@ --header-font: 'Pretendard Std'; --code-font: 'Fira Code'; - @supports(font-variation-settings: normal) { - /* Variable fonts */ - --text-font: 'iA Writer Quattro var'; - --header-font: 'Pretendard Std Variable'; - --code-font: 'Fira Code VF'; - } + // Disabling variable fonts to bring site weight down + // @supports(font-variation-settings: normal) { + // /* Variable fonts */ + // --text-font: 'iA Writer Quattro var'; + // --header-font: 'Pretendard Std Variable'; + // --code-font: 'Fira Code VF'; + // } } html {