Skip to content

Commit b4215fa

Browse files
authored
Merge pull request #244 from wpaccessibility/227-correctly-load-variable-fonts
227 Correctly load variable fonts
2 parents aa2ca7d + 3621e96 commit b4215fa

File tree

91 files changed

+60
-399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+60
-399
lines changed

_sass/abstracts/_variables.scss

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
@use "sass:map";
22

3+
// source-sans-3-latin-wght-normal
34
@font-face {
45
font-family: "Source Sans 3";
5-
src: url("/assets/fonts/Source_Sans_3/SourceSans3-VariableFont_wght.ttf");
6+
font-style: normal;
7+
font-display: swap;
8+
font-weight: 200 900;
9+
src: url(@fontsource-variable/source-sans-3/files/source-sans-3-latin-wght-normal.woff2)
10+
format("woff2-variations");
11+
unicode-range:
12+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
13+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
14+
U+2215, U+FEFF, U+FFFD;
615
}
716

17+
// source-sans-4-latin-wght-normal
818
@font-face {
919
font-family: "Source Serif 4";
10-
src: url("/assets/fonts/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.ttf");
20+
font-style: normal;
21+
font-display: swap;
22+
font-weight: 200 900;
23+
src: url(@fontsource-variable/source-serif-4/files/source-serif-4-latin-wght-normal.woff2)
24+
format("woff2-variations");
25+
unicode-range:
26+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
27+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
28+
U+2215, U+FEFF, U+FFFD;
1129
}
1230

1331
// Colors new design

assets/fonts/Source_Sans_3/OFL.txt

Lines changed: 0 additions & 93 deletions
This file was deleted.

assets/fonts/Source_Sans_3/README.txt

Lines changed: 0 additions & 79 deletions
This file was deleted.
Binary file not shown.
-627 KB
Binary file not shown.
-371 KB
Binary file not shown.
-230 KB
Binary file not shown.
-372 KB
Binary file not shown.
-232 KB
Binary file not shown.
-372 KB
Binary file not shown.

0 commit comments

Comments
 (0)