Skip to content

Commit

Permalink
doc: better font stack for monospace in docs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
silverwind authored and addaleax committed Jun 1, 2018
1 parent d1e81b0 commit bb8d341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ h1, h2, h3, h4, h5, h6 {
}

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

Expand Down

0 comments on commit bb8d341

Please sign in to comment.