Skip to content

Commit 445cd00

Browse files
committed
fix: reduce inter font payload
1 parent 3d08d13 commit 445cd00

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

public/fonts/Inter-latin-ext.woff2

130 KB
Binary file not shown.

public/fonts/Inter-latin.woff2

71.2 KB
Binary file not shown.

public/fonts/Inter.woff2

-344 KB
Binary file not shown.

src/styles/app.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,25 @@ mark {
796796
@font-face {
797797
font-display: swap;
798798
font-family: 'Inter';
799+
font-style: normal;
799800
font-weight: 100 900;
800-
src: url('/fonts/Inter.woff2') format('woff2');
801+
src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
802+
unicode-range:
803+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
804+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
805+
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
806+
}
807+
808+
@font-face {
809+
font-display: swap;
810+
font-family: 'Inter';
811+
font-style: normal;
812+
font-weight: 100 900;
813+
src: url('/fonts/Inter-latin.woff2') format('woff2');
814+
unicode-range:
815+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
816+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
817+
U+2215, U+FEFF, U+FFFD;
801818
}
802819

803820
@keyframes fadeIn {

0 commit comments

Comments
 (0)