Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 602658f

Browse files
committed
Update fonts
Update the bundled Open Sans fonts using <https://gwfh.mranftl.com/fonts/open-sans?subsets=latin,latin-ext> These include Regular and Italic and Bold (700) and Bold (700) Italic for the latin and latin extended character sets. This removes the older WOFF format font and we now only use WOFF2 fonts. WOFF2 offers better compression amongst other things. It is supported by all modern browsers... Edge (since version 14) Google Chrome (since version 36) Firefox (since version 35) Opera (since version 26) Safari (since version 10) Closes: #109 Reviewed-by: Dan Callahan <d.callahan@f5.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
1 parent 39d4b34 commit 602658f

7 files changed

+38
-4
lines changed

source/theme/layout.html

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,46 @@
3030
<meta property="twitter:card" content="summary_large_image">
3131

3232
<style>
33+
/* open-sans-regular - latin_latin-ext */
3334
@font-face {
34-
font-family: 'Open Sans';
35-
src: local('OpenSans'), local('Open Sans'), local('Open Sans Regular'), local('OpenSans-Regular'),
36-
url('{{ pathto('_static/OpenSans.woff2', 1) + '?' + md5('theme/static/OpenSans.woff2') }}') format('woff2'),
37-
url('{{ pathto('_static/OpenSans.woff', 1) + '?' + md5('theme/static/OpenSans.woff') }}') format('woff');
35+
font-display: swap;
36+
font-family: 'Open Sans';
37+
font-style: normal;
38+
font-weight: 400;
39+
src: local('OpenSans'), local('Open Sans'), local('Open Sans Regular'), local('OpenSans-Regular'),
40+
url('{{ pathto('/_static/open-sans-v40-latin_latin-ext-regular.woff2', 1) + '?' + md5('theme/static/open-sans-v40-latin_latin-ext-regular.woff2') }}') format('woff2');
3841
}
42+
43+
/* open-sans-italic - latin_latin-ext */
44+
@font-face {
45+
font-display: swap;
46+
font-family: 'Open Sans';
47+
font-style: italic;
48+
font-weight: 400;
49+
src: local('OpenSansItalic'), local('Open Sans Italic'), local('OpenSans Italic'), local('OpenSans-Italic'),
50+
url('{{ pathto('/_static/open-sans-v40-latin_latin-ext-italic.woff2', 1) + '?' + md5('theme/static/open-sans-v40-latin_latin-ext-italic.woff2') }}') format('woff2');
51+
}
52+
53+
/* open-sans-700 - latin_latin-ext */
54+
@font-face {
55+
font-display: swap;
56+
font-family: 'Open Sans';
57+
font-style: normal;
58+
font-weight: 700;
59+
src: local('OpenSansBold'), local('Open Sans Bold'), local('OpenSans Bold'), local('OpenSans-Bold'),
60+
url('{{ pathto('/_static/open-sans-v40-latin_latin-ext-700.woff2', 1) + '?' + md5('theme/static/open-sans-v40-latin_latin-ext-700.woff2') }}') format('woff2');
61+
}
62+
63+
/* open-sans-700italic - latin_latin-ext */
64+
@font-face {
65+
font-display: swap;
66+
font-family: 'Open Sans';
67+
font-style: italic;
68+
font-weight: 700;
69+
src: local('OpenSansBoldItalic'), local('Open Sans Bold Italic'), local('OpenSans Bold Italic'), local('OpenSans-BoldItalic'), local('OpenSans-Bold-Italic'),
70+
url('{{ pathto('/_static/open-sans-v40-latin_latin-ext-700italic.woff2', 1) + '?' + md5('theme/static/open-sans-v40-latin_latin-ext-700italic.woff2') }}') format('woff2');
71+
}
72+
3973
</style>
4074
<link rel="stylesheet" href="{{ pathto('_static/' + styles[-1], 1) + '?' + md5('theme/static/' + styles[-1]) }}" />
4175
<link rel="icon" href="{{ pathto('_static/icon.png', 1) + '?' + md5('theme/static/icon.png') }}" />

source/theme/static/OpenSans.woff

-13.8 KB
Binary file not shown.

source/theme/static/OpenSans.woff2

-10.9 KB
Binary file not shown.
24.1 KB
Binary file not shown.
Binary file not shown.
25.5 KB
Binary file not shown.
24.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)