Skip to content

Commit d026f30

Browse files
committed
Really reduce the load size of the webpage
Remove unnecessary fonts and use small fonts instead. They do not look as good, but they are smaller.
1 parent 8cf34af commit d026f30

11 files changed

+26
-16
lines changed
21.4 KB
Binary file not shown.
-785 KB
Binary file not shown.
-230 KB
Binary file not shown.
-364 KB
Binary file not shown.
53.7 KB
Binary file not shown.
-1.62 MB
Binary file not shown.
Binary file not shown.
-534 KB
Binary file not shown.
Binary file not shown.
-471 KB
Binary file not shown.

doc/source/_static/importfonts.css

+26-16
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,53 @@
11
@font-face
22
{
33
font-family: FreeSans;
4-
src: url(fonts/FreeSans.woff);
4+
src: url(fonts/FreeSans-small.woff);
55
}
66

7-
@font-face
8-
{
9-
font-family: FreeSans;
10-
src: url(fonts/FreeSansBold.woff);
11-
font-weight: bold;
12-
}
7+
/* These two should never be used in our typesetting */
8+
/* @font-face */
9+
/* { */
10+
/* font-family: FreeSans; */
11+
/* src: url(fonts/FreeSansBold-small.woff); */
12+
/* font-weight: bold; */
13+
/* } */
1314

14-
@font-face
15-
{
16-
font-family: FreeSans;
17-
src: url(fonts/FreeSansOblique.woff);
18-
font-style: oblique;
19-
}
15+
/* @font-face */
16+
/* { */
17+
/* font-family: FreeSans; */
18+
/* src: url(fonts/FreeSansOblique.woff); */
19+
/* font-style: oblique; */
20+
/* } */
2021

2122
@font-face
2223
{
2324
font-family: FreeSerif;
24-
src: url(fonts/FreeSerif.woff);
25+
src: url(fonts/FreeSerif-small.woff);
2526
}
2627

2728
@font-face
2829
{
2930
font-family: FreeSerif;
30-
src: url(fonts/FreeSerifItalic.woff);
31+
src: url(fonts/FreeSerifItalic-small.woff);
3132
font-style: italic;
3233
}
3334

3435
@font-face
3536
{
3637
font-family: FreeSerif;
37-
src: url(fonts/FreeSerifBold.woff);
38+
src: url(fonts/FreeSerifBold-small.woff);
3839
font-weight: bold;
3940
}
4041

42+
/* Neither should this one */
43+
/* @font-face */
44+
/* { */
45+
/* font-family: FreeSerif; */
46+
/* src: url(fonts/FreeSerifBoldItalic-small.woff); */
47+
/* font-style: italic; */
48+
/* font-weight: bold; */
49+
/* } */
50+
4151
@font-face
4252
{
4353
font-family: Mononoki;

0 commit comments

Comments
 (0)