Skip to content

Commit 0baad8f

Browse files
committed
doc: better font stack for monospace in docs
There appear to be rendering issues with inconsistent glyph width when using the Monaco font on non-macOS machines. This change updates the native CSS font stack to use the same font stack as Boostrap does, minus the Monaco font. PR-URL: nodejs#21036 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yazhong Liu <yorkiefixer@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 694ac6d commit 0baad8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api_assets/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ h1, h2, h3, h4, h5, h6 {
3535
}
3636

3737
pre, tt, code, .pre, span.type, a.type {
38-
font-family: Monaco, Consolas, "Lucida Console", monospace;
38+
font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
3939
font-size: .9em;
4040
}
4141

0 commit comments

Comments
 (0)