Skip to content

Commit d0cc6d5

Browse files
committed
refactor: update monospaced font to Monaspace Neon
1 parent 20ddde5 commit d0cc6d5

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

MonaspaceNeon-Regular.woff2

132 KB
Binary file not shown.

boostlook.css

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281

282282
/* New Look Typography */
283283
--font-family-body: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
284-
--font-family-code: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
284+
--font-family-code: "Monaspace Neon", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
285285
--font-size-3xs: 0.625rem;
286286
--font-size-2xs: 0.75rem;
287287
--font-size-xs: 0.875rem;
@@ -709,7 +709,7 @@ html:has(.boostlook) {
709709
* Typography Configuration
710710
* The framework uses Noto Sans family as its primary font system:
711711
* 1. Noto Sans Display: Main text font with variable weight support
712-
* 2. Noto Sans Mono: Monospace font for code blocks
712+
* 2. Monaspace Neon: Monospace font for code blocks
713713
*
714714
* Font Loading Strategy:
715715
* - Multiple source paths for resilient loading
@@ -757,38 +757,16 @@ html:has(.boostlook) {
757757
line-gap-override: 0%;
758758
}
759759

760-
/* Noto Sans Mono - Variable Weight */
760+
/* Monaspace Neon - Regular */
761761
@font-face {
762-
font-family: "Noto Sans Mono";
763-
font-style: normal;
764-
font-weight: 100 900;
765-
font-stretch: 62.5% 100%;
766-
/* Variable font weight range */
767-
font-variation-settings: "wght" 400, "wdth" 62.5;
768-
font-display: block;
769-
src: url("../font/NotoSansMono.ttf") format("truetype"),
770-
url("/static/font/notosans_mono.woff") format("woff"),
771-
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
772-
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
773-
/* Metric overrides to reduce CLS on swap */
774-
size-adjust: 100%;
775-
ascent-override: 92%;
776-
descent-override: 22%;
777-
line-gap-override: 0%;
778-
}
779-
780-
/* Noto Sans Mono - Fixed Weight */
781-
@font-face {
782-
font-family: "Noto Sans Mono";
762+
font-family: "Monaspace Neon";
783763
font-style: normal;
784764
font-weight: 400;
785-
/* Fixed weight for specific use cases */
786-
font-stretch: 62.5% 100%;
787765
font-display: block;
788-
src: url("../font/NotoSansMono.ttf") format("truetype"),
789-
url("/static/font/notosans_mono.woff") format("woff"),
790-
url("../../../../tools/boostlook/notosans_mono.woff") format("woff"),
791-
url("https://cppalliance.org/fonts/NotoSansMono.ttf") format("truetype");
766+
src: url("../font/MonaspaceNeonFrozen-Regular.ttf") format("truetype"),
767+
url("/static/font/MonaspaceNeon-Regular.woff2") format("woff2"),
768+
url("../../../../tools/boostlook/MonaspaceNeon-Regular.woff2") format("woff2"),
769+
url("https://cppalliance.org/fonts/MonaspaceNeon-Regular.woff2") format("woff2");
792770
/* Metric overrides to reduce CLS on swap */
793771
size-adjust: 100%;
794772
ascent-override: 92%;
@@ -1308,7 +1286,7 @@ div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #conte
13081286
}
13091287

13101288
.boostlook code {
1311-
font-family: var(--font-family-code, "Noto Sans Mono"), monospace;
1289+
font-family: var(--font-family-code, "Monaspace Neon"), monospace;
13121290
}
13131291

13141292
.boostlook table thead code {
@@ -2381,7 +2359,7 @@ html.dark .boostlook .hljs-code {
23812359
.boostlook .dlist dl dt code,
23822360
.boostlook:not(:has(.doc)) .variablelist dl dt code {
23832361
font-variation-settings: "wght" 600, "wdth" 80;
2384-
font-family: var(--font-family-code, 'Noto Sans Mono');
2362+
font-family: var(--font-family-code, 'Monaspace Neon');
23852363
}
23862364

23872365
.boostlook .dlist dl dd,

0 commit comments

Comments
 (0)