Skip to content

Commit 277ccda

Browse files
authored
doc: remove remote loading of fonts & upload to repo (#1405)
* doc: remove remote loading of fonts & upload to repo * doc: updated attributions.html
1 parent 7472a55 commit 277ccda

22 files changed

+182
-16
lines changed

NOTICE

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ Copyright 2012 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (https://www.apache.org/).
6+
7+
--
8+
9+
This product includes binary fonts that are provided under SIL Open Font License, Version 1.1.
10+
11+
- ./www/static/fonts/raleway
12+
13+
Copyright 2010 The Raleway Project Authors ([email protected]), with Reserved Font Name "Raleway".
14+
15+
This Font Software is licensed under the SIL Open Font License, Version 1.1 . This license is copied below, and is also available with a FAQ at: https://openfontlicense.org
16+
17+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

www/_includes/head.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@
3737

3838
<!-- CSS -->
3939
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/main.css">
40+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/fonts.css">
4041
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/lib/syntax.css">
4142

42-
<!-- Fonts -->
43-
<!-- For attribution information, see www/attributions.html -->
44-
<link href='https://fonts.googleapis.com/css?family=Raleway:700,400,300,700italic,400italic,300italic' rel='stylesheet' type='text/css'>
45-
4643
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
4744
<!--[if lt IE 9]>
4845
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>

www/attributions.html

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,27 @@ <h2>
3636
</h2>
3737
<hr>
3838
<p>
39-
Raleway-Light.ttf: Copyright &copy; 2010 - 2013, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
40-
<br/>
41-
Raleway-LightItalic.ttf: Copyright &copy; 2010 - 2012, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
42-
<br/>
43-
Raleway-Regular.ttf: Copyright &copy; 2010 - 2013, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
44-
<br/>
45-
Raleway-Italic.ttf: Copyright &copy; 2010 - 2012, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
46-
<br/>
47-
Raleway-Bold.ttf: Copyright &copy; 2010 - 2013, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
48-
<br/>
49-
Raleway-BoldItalic.ttf: Copyright &copy; 2010 - 2012, <a href="mailto:[email protected]">Matt McInerney</a>, <a href="mailto:[email protected]">Pablo Impallari</a>, <a href="mailto:[email protected]">Rodrigo Fuenzalida</a> with Reserved Font Name "Raleway"
50-
<br/>
39+
Copyright 2010 The Raleway Project Authors ([email protected]), with Reserved Font Name "Raleway".
40+
<ul>
41+
<li>Raleway-Black.ttf</li>
42+
<li>Raleway-BlackItalic.ttf</li>
43+
<li>Raleway-Bold.ttf</li>
44+
<li>Raleway-BoldItalic.ttf</li>
45+
<li>Raleway-ExtraBold.ttf</li>
46+
<li>Raleway-ExtraBoldItalic.ttf</li>
47+
<li>Raleway-ExtraLight.ttf</li>
48+
<li>Raleway-ExtraLightItalic.ttf</li>
49+
<li>Raleway-Italic.ttf</li>
50+
<li>Raleway-Light.ttf</li>
51+
<li>Raleway-LightItalic.ttf</li>
52+
<li>Raleway-Medium.ttf</li>
53+
<li>Raleway-MediumItalic.ttf</li>
54+
<li>Raleway-Regular.ttf</li>
55+
<li>Raleway-SemiBold.ttf</li>
56+
<li>Raleway-SemiBoldItalic.ttf</li>
57+
<li>Raleway-Thin.ttf</li>
58+
<li>Raleway-ThinItalic.ttf</li>
59+
</ul>
5160
</p>
5261
</section>
5362

www/static/css-src/fonts.scss

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
20+
// Normal Style Font
21+
22+
@font-face {
23+
font-family: 'Raleway';
24+
font-weight: 100;
25+
font-style: normal;
26+
src: url(/static/fonts/raleway/Raleway-Thin.ttf) format('truetype');
27+
}
28+
29+
@font-face {
30+
font-family: 'Raleway';
31+
font-weight: 200;
32+
font-style: normal;
33+
src: url(/static/fonts/raleway/Raleway-ExtraLight.ttf) format('truetype');
34+
}
35+
36+
@font-face {
37+
font-family: 'Raleway';
38+
font-weight: 300;
39+
font-style: normal;
40+
src: url(/static/fonts/raleway/Raleway-Light.ttf) format('truetype');
41+
}
42+
43+
@font-face {
44+
font-family: 'Raleway';
45+
font-weight: 400;
46+
font-style: normal;
47+
src: url(/static/fonts/raleway/Raleway-Regular.ttf) format('truetype');
48+
}
49+
50+
@font-face {
51+
font-family: 'Raleway';
52+
font-weight: 500;
53+
font-style: normal;
54+
src: url(/static/fonts/raleway/Raleway-Medium.ttf) format('truetype');
55+
}
56+
57+
@font-face {
58+
font-family: 'Raleway';
59+
font-weight: 600;
60+
font-style: normal;
61+
src: url(/static/fonts/raleway/Raleway-SemiBold.ttf) format('truetype');
62+
}
63+
64+
@font-face {
65+
font-family: 'Raleway';
66+
font-weight: 700;
67+
font-style: normal;
68+
src: url(/static/fonts/raleway/Raleway-Bold.ttf) format('truetype');
69+
}
70+
71+
@font-face {
72+
font-family: 'Raleway';
73+
font-weight: 800;
74+
font-style: normal;
75+
src: url(/static/fonts/raleway/Raleway-ExtraBold.ttf) format('truetype');
76+
}
77+
78+
@font-face {
79+
font-family: 'Raleway';
80+
font-weight: 900;
81+
font-style: normal;
82+
src: url(/static/fonts/raleway/Raleway-Black.ttf) format('truetype');
83+
}
84+
85+
// Italic Style Font
86+
87+
@font-face {
88+
font-family: 'Raleway';
89+
font-weight: 100;
90+
font-style: italic;
91+
src: url(/static/fonts/raleway/Raleway-ThinItalic.ttf) format('truetype');
92+
}
93+
94+
@font-face {
95+
font-family: 'Raleway';
96+
font-weight: 200;
97+
font-style: italic;
98+
src: url(/static/fonts/raleway/Raleway-ExtraLightItalic.ttf) format('truetype');
99+
}
100+
101+
@font-face {
102+
font-family: 'Raleway';
103+
font-weight: 300;
104+
font-style: italic;
105+
src: url(/static/fonts/raleway/Raleway-LightItalic.ttf) format('truetype');
106+
}
107+
108+
@font-face {
109+
font-family: 'Raleway';
110+
font-weight: 400;
111+
font-style: italic;
112+
src: url(/static/fonts/raleway/Raleway-Italic.ttf) format('truetype');
113+
}
114+
115+
@font-face {
116+
font-family: 'Raleway';
117+
font-weight: 500;
118+
font-style: italic;
119+
src: url(/static/fonts/raleway/Raleway-MediumItalic.ttf) format('truetype');
120+
}
121+
122+
@font-face {
123+
font-family: 'Raleway';
124+
font-weight: 600;
125+
font-style: italic;
126+
src: url(/static/fonts/raleway/Raleway-SemiBoldItalic.ttf) format('truetype');
127+
}
128+
129+
@font-face {
130+
font-family: 'Raleway';
131+
font-weight: 700;
132+
font-style: italic;
133+
src: url(/static/fonts/raleway/Raleway-BoldItalic.ttf) format('truetype');
134+
}
135+
136+
@font-face {
137+
font-family: 'Raleway';
138+
font-weight: 800;
139+
font-style: italic;
140+
src: url(/static/fonts/raleway/Raleway-ExtraBoldItalic.ttf) format('truetype');
141+
}
142+
143+
@font-face {
144+
font-family: 'Raleway';
145+
font-weight: 900;
146+
font-style: italic;
147+
src: url(/static/fonts/raleway/Raleway-BlackItalic.ttf) format('truetype');
148+
}
160 KB
Binary file not shown.
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
158 KB
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.
160 KB
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.
160 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)