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: #21036 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yazhong Liu <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 694ac6d commit 0baad8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)