From bb8d341714e4760f63ec66f997104bcc572417c2 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Wed, 30 May 2018 17:03:04 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/21036 Reviewed-By: Luigi Pinca Reviewed-By: Yazhong Liu Reviewed-By: Gus Caplan Reviewed-By: Trivikram Kamat --- doc/api_assets/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 97ef2a5b892ac4..b4da3375d5b521 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -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; }