From 3a72bc3f1c88e145008174c20532aaef86c02c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20T=C3=A9tar?= Date: Sat, 1 Nov 2014 00:06:45 +0100 Subject: [PATCH 1/3] rustdoc: stop trying to use font-variants we don't have Browser-generated weights or slants is the last thing we want... --- src/librustdoc/html/static/main.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 7eec634405b7..cb40cccf3b32 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -177,7 +177,7 @@ nav.sub { color: #333; } -.location a:first-child { font-weight: bold; } +.location a:first-child { font-weight: 500; } .block { padding: 0 10px; @@ -494,7 +494,7 @@ pre.rust { position: relative; } } .collapse-toggle { - font-weight: 100; + font-weight: 300; position: absolute; left: 13px; color: #999; @@ -523,7 +523,6 @@ pre.rust { position: relative; } .toggle-label { color: #999; - font-style: italic; } From c809a4ff014bef082873953c0369dc2a423f8144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20T=C3=A9tar?= Date: Sat, 1 Nov 2014 00:15:31 +0100 Subject: [PATCH 2/3] Update one corrupt webfont As with last time (where I marked .woff files as binary so that git does not perform newline normalization), it's unclear how it got corrupted in the first place. --- .../html/static/SourceSerifPro-Bold.woff | Bin 48718 -> 48720 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/src/librustdoc/html/static/SourceSerifPro-Bold.woff b/src/librustdoc/html/static/SourceSerifPro-Bold.woff index 435a6f975c97c26e7c7b83eb692648d9f581c76f..ac1b1b3a0bb7a673d52495743d8f86fd55188b44 100644 GIT binary patch delta 23 fcmX^2hv~u}rVS@e75~cogPI92 delta 19 bcmccchw0oOrVS@eHlH%FRN2fD>5~coX=@1= From f4fb57b1106dfd386da8bec2c0617e50e1e7311f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20T=C3=A9tar?= Date: Sat, 1 Nov 2014 00:16:48 +0100 Subject: [PATCH 3/3] doc: enable OpenType kerning and ligatures --- src/doc/rust.css | 4 ++++ src/librustdoc/html/static/main.css | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/doc/rust.css b/src/doc/rust.css index 4bbb80984021..9656d17721e4 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -62,6 +62,10 @@ body { font-size: 18px; color: #333; line-height: 1.428571429; + + -webkit-font-feature-settings: "kern", "liga"; + -moz-font-feature-settings: "kern", "liga"; + font-feature-settings: "kern", "liga"; } @media (min-width: 768px) { body { diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index cb40cccf3b32..7cc34798f990 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -69,6 +69,10 @@ body { margin: 0; position: relative; padding: 10px 15px 20px 15px; + + -webkit-font-feature-settings: "kern", "liga"; + -moz-font-feature-settings: "kern", "liga"; + font-feature-settings: "kern", "liga"; } h1 { @@ -101,7 +105,7 @@ h3.impl, h3.method, h4.method { h3.impl, h3.method { margin-top: 15px; } -h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a, .collapse-toggle { +h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }