Skip to content

Commit 70339ea

Browse files
committed
update .gitignore to include boostlook.css to test font-display
1 parent 9471437 commit 70339ea

File tree

6 files changed

+4588
-10
lines changed

6 files changed

+4588
-10
lines changed

antora-ui/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/build/
22
/node_modules/
33
/public/
4-
/src/css/boostlook.css
4+
# /src/css/boostlook.css
55

antora-ui/src/css/boostlook.css

Lines changed: 4577 additions & 0 deletions
Large diffs are not rendered by default.
1.62 MB
Binary file not shown.
1.47 MB
Binary file not shown.
1.63 MB
Binary file not shown.

antora-ui/src/partials/head-fonts.hbs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<link rel="dns-prefetch" href="https://cppalliance.org">
2-
<link rel="preconnect" href="https://cppalliance.org" crossorigin>
3-
<link rel="preload" href="https://cppalliance.org/fonts/NotoSansDisplay.ttf" as="font" type="font/ttf" crossorigin fetchpriority="high" />
4-
<link rel="preload" href="https://cppalliance.org/fonts/NotoSansDisplay-Italic.ttf" as="font" type="font/ttf" crossorigin fetchpriority="high" />
5-
<link rel="preload" href="https://cppalliance.org/fonts/NotoSansMono.ttf" as="font" type="font/ttf" crossorigin fetchpriority="high" />
1+
<link rel="preload" href="{{{uiRootPath}}}/font/NotoSansDisplay.ttf" as="font" type="font/ttf" fetchpriority="high" />
2+
<link rel="preload" href="{{{uiRootPath}}}/font/NotoSansDisplay-Italic.ttf" as="font" type="font/ttf"
3+
fetchpriority="high" />
4+
<link rel="preload" href="{{{uiRootPath}}}/font/NotoSansMono.ttf" as="font" type="font/ttf" fetchpriority="high" />
65
<script>
76
(function() {
87
'use strict';
@@ -11,14 +10,16 @@
1110
document.documentElement.style.visibility = 'hidden';
1211
1312
var fontUrls = [
14-
{ family: 'Noto Sans', url: 'https://cppalliance.org/fonts/NotoSansDisplay.ttf', style: 'normal' },
15-
{ family: 'Noto Sans', url: 'https://cppalliance.org/fonts/NotoSansDisplay-Italic.ttf', style: 'italic' },
16-
{ family: 'Noto Sans Mono', url: 'https://cppalliance.org/fonts/NotoSansMono.ttf', style: 'normal' }
13+
{ family: 'Noto Sans', url: '{{{uiRootPath}}}/font/NotoSansDisplay.ttf', style: 'normal', weight: '400' },
14+
{ family: 'Noto Sans', url: '{{{uiRootPath}}}/font/NotoSansDisplay.ttf', style: 'normal', weight: '600' },
15+
{ family: 'Noto Sans', url: '{{{uiRootPath}}}/font/NotoSansDisplay-Italic.ttf', style: 'italic', weight: '400' },
16+
{ family: 'Noto Sans Mono', url: '{{{uiRootPath}}}/font/NotoSansMono.ttf', style: 'normal', weight: '400' }
1717
];
1818
1919
var fontPromises = fontUrls.map(function(fontConfig) {
2020
var fontFace = new FontFace(fontConfig.family, 'url(' + fontConfig.url + ')', {
21-
style: fontConfig.style
21+
style: fontConfig.style,
22+
weight: fontConfig.weight
2223
});
2324
return fontFace.load().then(function(loadedFont) {
2425
document.fonts.add(loadedFont);

0 commit comments

Comments
 (0)