Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b76511b

Browse files
committed
Add font-display property
Allows for faster rendering while waiting for fonts to download.
1 parent 3e7343e commit b76511b

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-webfont.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-webfont.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)

AltStyle によって変換されたページ (->オリジナル) /