Skip to content

Commit 7d38212

Browse files
committed
[CALCITE-6843] Self-host Lato font on website due to ASF's content security policy
1 parent 2ddfb0e commit 7d38212

18 files changed

+134
-13
lines changed

LICENSE

+4
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,7 @@ site/_sass/_mixins.scss
194194
site/_sass/_pygments.scss
195195
* normalize:normalize:3.0.2
196196
site/_sass/_normalize.scss
197+
198+
SIL Open Font License
199+
* lato-fonts:lato
200+
site/_sass/_lato.scss

site/Gemfile.lock

+17-13
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,32 @@ GEM
3939
http_parser.rb (0.8.0)
4040
i18n (1.14.7)
4141
concurrent-ruby (~> 1.0)
42-
jekyll (4.3.4)
42+
jekyll (4.4.1)
4343
addressable (~> 2.4)
44+
base64 (~> 0.2)
4445
colorator (~> 1.0)
46+
csv (~> 3.0)
4547
em-websocket (~> 0.5)
4648
i18n (~> 1.0)
4749
jekyll-sass-converter (>= 2.0, < 4.0)
4850
jekyll-watch (~> 2.0)
51+
json (~> 2.6)
4952
kramdown (~> 2.3, >= 2.3.1)
5053
kramdown-parser-gfm (~> 1.0)
5154
liquid (~> 4.0)
52-
mercenary (>= 0.3.6, < 0.5)
55+
mercenary (~> 0.3, >= 0.3.6)
5356
pathutil (~> 0.9)
5457
rouge (>= 3.0, < 5.0)
5558
safe_yaml (~> 1.0)
5659
terminal-table (>= 1.8, < 4.0)
5760
webrick (~> 1.7)
5861
jekyll-redirect-from (0.16.0)
5962
jekyll (>= 3.3, < 5.0)
60-
jekyll-sass-converter (3.0.0)
61-
sass-embedded (~> 1.54)
63+
jekyll-sass-converter (3.1.0)
64+
sass-embedded (~> 1.75)
6265
jekyll-watch (2.2.1)
6366
listen (~> 3.0)
67+
json (2.10.1)
6468
kramdown (2.5.1)
6569
rexml (>= 3.3.9)
6670
kramdown-parser-gfm (1.1.0)
@@ -94,24 +98,24 @@ GEM
9498
rb-fsevent (0.11.2)
9599
rb-inotify (0.11.1)
96100
ffi (~> 1.0)
97-
rexml (3.4.0)
101+
rexml (3.4.1)
98102
rouge (4.5.1)
99103
safe_yaml (1.0.5)
100-
sass-embedded (1.83.4-aarch64-linux-gnu)
104+
sass-embedded (1.85.0-aarch64-linux-gnu)
101105
google-protobuf (~> 4.29)
102-
sass-embedded (1.83.4-aarch64-linux-musl)
106+
sass-embedded (1.85.0-aarch64-linux-musl)
103107
google-protobuf (~> 4.29)
104-
sass-embedded (1.83.4-arm-linux-gnueabihf)
108+
sass-embedded (1.85.0-arm-linux-gnueabihf)
105109
google-protobuf (~> 4.29)
106-
sass-embedded (1.83.4-arm-linux-musleabihf)
110+
sass-embedded (1.85.0-arm-linux-musleabihf)
107111
google-protobuf (~> 4.29)
108-
sass-embedded (1.83.4-arm64-darwin)
112+
sass-embedded (1.85.0-arm64-darwin)
109113
google-protobuf (~> 4.29)
110-
sass-embedded (1.83.4-x86_64-darwin)
114+
sass-embedded (1.85.0-x86_64-darwin)
111115
google-protobuf (~> 4.29)
112-
sass-embedded (1.83.4-x86_64-linux-gnu)
116+
sass-embedded (1.85.0-x86_64-linux-gnu)
113117
google-protobuf (~> 4.29)
114-
sass-embedded (1.83.4-x86_64-linux-musl)
118+
sass-embedded (1.85.0-x86_64-linux-musl)
115119
google-protobuf (~> 4.29)
116120
terminal-table (3.0.2)
117121
unicode-display_width (>= 1.1.1, < 3)

site/_sass/_lato.scss

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/* latin-ext */
2+
@font-face {
3+
font-family: 'Lato';
4+
font-style: italic;
5+
font-weight: 300;
6+
src: url('../fonts/lato-italic-300-ext.woff2') format('woff2');
7+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
8+
}
9+
/* latin */
10+
@font-face {
11+
font-family: 'Lato';
12+
font-style: italic;
13+
font-weight: 300;
14+
src: url('../fonts/lato-italic-300.woff2') format('woff2');
15+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
16+
}
17+
/* latin-ext */
18+
@font-face {
19+
font-family: 'Lato';
20+
font-style: italic;
21+
font-weight: 400;
22+
src: url('../fonts/lato-italic-400-ext.woff2') format('woff2');
23+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
24+
}
25+
/* latin */
26+
@font-face {
27+
font-family: 'Lato';
28+
font-style: italic;
29+
font-weight: 400;
30+
src: url('../fonts/lato-italic-400.woff2') format('woff2');
31+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
32+
}
33+
/* latin-ext */
34+
@font-face {
35+
font-family: 'Lato';
36+
font-style: italic;
37+
font-weight: 700;
38+
src: url('../fonts/lato-italic-700-ext.woff2') format('woff2');
39+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
40+
}
41+
/* latin */
42+
@font-face {
43+
font-family: 'Lato';
44+
font-style: italic;
45+
font-weight: 700;
46+
src: url('../fonts/lato-italic-700.woff2') format('woff2');
47+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
48+
}
49+
/* latin-ext */
50+
@font-face {
51+
font-family: 'Lato';
52+
font-style: normal;
53+
font-weight: 300;
54+
src: url('../fonts/lato-300-ext.woff2') format('woff2');
55+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
56+
}
57+
/* latin */
58+
@font-face {
59+
font-family: 'Lato';
60+
font-style: normal;
61+
font-weight: 300;
62+
src: url('../fonts/lato-300.woff2') format('woff2');
63+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
64+
}
65+
/* latin-ext */
66+
@font-face {
67+
font-family: 'Lato';
68+
font-style: normal;
69+
font-weight: 400;
70+
src: url('../fonts/lato-400-ext.woff2') format('woff2');
71+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
72+
}
73+
/* latin */
74+
@font-face {
75+
font-family: 'Lato';
76+
font-style: normal;
77+
font-weight: 400;
78+
src: url('../fonts/lato-400.woff2') format('woff2');
79+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
80+
}
81+
/* latin-ext */
82+
@font-face {
83+
font-family: 'Lato';
84+
font-style: normal;
85+
font-weight: 700;
86+
src: url('../fonts/lato-700-ext.woff2') format('woff2');
87+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
88+
}
89+
/* latin */
90+
@font-face {
91+
font-family: 'Lato';
92+
font-style: normal;
93+
font-weight: 700;
94+
src: url('../fonts/lato-700.woff2') format('woff2');
95+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
96+
}
97+
/* latin-ext */
98+
@font-face {
99+
font-family: 'Lato';
100+
font-style: normal;
101+
font-weight: 900;
102+
src: url('../fonts/lato-900-ext.woff2') format('woff2');
103+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
104+
}
105+
/* latin */
106+
@font-face {
107+
font-family: 'Lato';
108+
font-style: normal;
109+
font-weight: 900;
110+
src: url('../fonts/lato-900.woff2') format('woff2');
111+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
112+
}

site/css/screen.scss

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
@use "gridism";
77
@use "pygments";
88
@use "font-awesome";
9+
@use "lato";
910
@use "style";
1011

site/fonts/lato-300-ext.woff2

5.49 KB
Binary file not shown.

site/fonts/lato-300.woff2

22.7 KB
Binary file not shown.

site/fonts/lato-400-ext.woff2

5.34 KB
Binary file not shown.

site/fonts/lato-400.woff2

23 KB
Binary file not shown.

site/fonts/lato-700-ext.woff2

5.24 KB
Binary file not shown.

site/fonts/lato-700.woff2

22.5 KB
Binary file not shown.

site/fonts/lato-900-ext.woff2

5.29 KB
Binary file not shown.

site/fonts/lato-900.woff2

22 KB
Binary file not shown.

site/fonts/lato-italic-300-ext.woff2

4.24 KB
Binary file not shown.

site/fonts/lato-italic-300.woff2

17.3 KB
Binary file not shown.

site/fonts/lato-italic-400-ext.woff2

5.47 KB
Binary file not shown.

site/fonts/lato-italic-400.woff2

23.8 KB
Binary file not shown.

site/fonts/lato-italic-700-ext.woff2

5.48 KB
Binary file not shown.

site/fonts/lato-italic-700.woff2

23.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)