Skip to content

Commit af07875

Browse files
committed
feat: add Noto Sans font files and update font links to use uiRootPath
1 parent 9471437 commit af07875

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed
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: 7 additions & 8 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,9 +10,9 @@
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' },
14+
{ family: 'Noto Sans', url: '{{{uiRootPath}}}/font/NotoSansDisplay-Italic.ttf', style: 'italic' },
15+
{ family: 'Noto Sans Mono', url: '{{{uiRootPath}}}/font/NotoSansMono.ttf', style: 'normal' }
1716
];
1817
1918
var fontPromises = fontUrls.map(function(fontConfig) {

0 commit comments

Comments
 (0)