Skip to content

Commit 1eddf94

Browse files
Merge pull request #470 from jbhannah/patch-2
Add font-display property
2 parents d841afa + b76511b commit 1eddf94

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

build/web/hack-subset.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@
99
src: url('fonts/hack-regular-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular-subset.woff?sha=3114f1256') format('woff');
1010
font-weight: 400;
1111
font-style: normal;
12+
font-display: swap;
1213
}
1314

1415
@font-face {
1516
font-family: 'Hack';
1617
src: url('fonts/hack-bold-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold-subset.woff?sha=3114f1256') format('woff');
1718
font-weight: 700;
1819
font-style: normal;
20+
font-display: swap;
1921
}
2022

2123
@font-face {
2224
font-family: 'Hack';
2325
src: url('fonts/hack-italic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic-subset.woff?sha=3114f1256') format('woff');
2426
font-weight: 400;
2527
font-style: italic;
28+
font-display: swap;
2629
}
2730

2831
@font-face {
2932
font-family: 'Hack';
3033
src: url('fonts/hack-bolditalic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic-subset.woff?sha=3114f1256') format('woff');
3134
font-weight: 700;
3235
font-style: italic;
36+
font-display: swap;
3337
}
34-

build/web/hack-subset.css.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@
99
src: url('fonts/hack-regular-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-regular-subset.woff?sha={{ ink }}') format('woff');
1010
font-weight: 400;
1111
font-style: normal;
12+
font-display: swap;
1213
}
1314

1415
@font-face {
1516
font-family: 'Hack';
1617
src: url('fonts/hack-bold-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bold-subset.woff?sha={{ ink }}') format('woff');
1718
font-weight: 700;
1819
font-style: normal;
20+
font-display: swap;
1921
}
2022

2123
@font-face {
2224
font-family: 'Hack';
2325
src: url('fonts/hack-italic-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-italic-subset.woff?sha={{ ink }}') format('woff');
2426
font-weight: 400;
2527
font-style: italic;
28+
font-display: swap;
2629
}
2730

2831
@font-face {
2932
font-family: 'Hack';
3033
src: url('fonts/hack-bolditalic-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bolditalic-subset.woff?sha={{ ink }}') format('woff');
3134
font-weight: 700;
3235
font-style: italic;
36+
font-display: swap;
3337
}
34-

build/web/hack.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@
99
src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff');
1010
font-weight: 400;
1111
font-style: normal;
12+
font-display: swap;
1213
}
1314

1415
@font-face {
1516
font-family: 'Hack';
1617
src: url('fonts/hack-bold.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold.woff?sha=3114f1256') format('woff');
1718
font-weight: 700;
1819
font-style: normal;
20+
font-display: swap;
1921
}
2022

2123
@font-face {
2224
font-family: 'Hack';
2325
src: url('fonts/hack-italic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic.woff?sha=3114f1256') format('woff');
2426
font-weight: 400;
2527
font-style: italic;
28+
font-display: swap;
2629
}
2730

2831
@font-face {
2932
font-family: 'Hack';
3033
src: url('fonts/hack-bolditalic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic.woff?sha=3114f1256') format('woff');
3134
font-weight: 700;
3235
font-style: italic;
36+
font-display: swap;
3337
}
34-

build/web/hack.css.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@
99
src: url('fonts/hack-regular.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-regular.woff?sha={{ ink }}') format('woff');
1010
font-weight: 400;
1111
font-style: normal;
12+
font-display: swap;
1213
}
1314

1415
@font-face {
1516
font-family: 'Hack';
1617
src: url('fonts/hack-bold.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bold.woff?sha={{ ink }}') format('woff');
1718
font-weight: 700;
1819
font-style: normal;
20+
font-display: swap;
1921
}
2022

2123
@font-face {
2224
font-family: 'Hack';
2325
src: url('fonts/hack-italic.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-italic.woff?sha={{ ink }}') format('woff');
2426
font-weight: 400;
2527
font-style: italic;
28+
font-display: swap;
2629
}
2730

2831
@font-face {
2932
font-family: 'Hack';
3033
src: url('fonts/hack-bolditalic.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bolditalic.woff?sha={{ ink }}') format('woff');
3134
font-weight: 700;
3235
font-style: italic;
36+
font-display: swap;
3337
}
34-

0 commit comments

Comments
 (0)