Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a9c6cd5

Browse files
authored
feat: choose FOUT over FOIT (#71)
Use font-display swap
1 parent b7b6b47 commit a9c6cd5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

styles/font.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
font-family: 'PT Serif';
44
font-style: normal;
55
font-weight: 400;
6+
font-display: swap;
67
src: local('PT Serif'), local('PTSerif-Regular'), url('~fonts/EJRVQgYoZZY2vCFuvAFbzr-_dSb_nco.woff2') format('woff2');
78
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
89
}
@@ -11,6 +12,7 @@
1112
font-family: 'PT Serif';
1213
font-style: normal;
1314
font-weight: 400;
15+
font-display: swap;
1416
src: local('PT Serif'), local('PTSerif-Regular'), url('~fonts/EJRVQgYoZZY2vCFuvAFSzr-_dSb_nco.woff2') format('woff2');
1517
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
1618
}
@@ -19,6 +21,7 @@
1921
font-family: 'PT Serif';
2022
font-style: normal;
2123
font-weight: 400;
24+
font-display: swap;
2225
src: local('PT Serif'), local('PTSerif-Regular'), url('~fonts/EJRVQgYoZZY2vCFuvAFYzr-_dSb_nco.woff2') format('woff2');
2326
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
2427
}
@@ -27,6 +30,7 @@
2730
font-family: 'PT Serif';
2831
font-style: normal;
2932
font-weight: 400;
33+
font-display: swap;
3034
src: local('PT Serif'), local('PTSerif-Regular'), url('~fonts/EJRVQgYoZZY2vCFuvAFWzr-_dSb_.woff2') format('woff2');
3135
unicode-range: U+0000-00FF, 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;
3236
}

styles/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ strong
7373
h1, h2, h3, h4, h5, h6
7474
font-weight 600
7575
line-height 1.25
76-
font-family PT Serif
76+
font-family PT Serif, Serif
7777

7878
{$contentClass}:not(.custom) > &
7979
margin-top 'calc(0.5rem - %s)' % ($headerHeight)

0 commit comments

Comments
 (0)