From ea9519bf16f0be137a814a49c9fbaf232ba49a43 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Mon, 21 Oct 2019 16:25:03 +0200 Subject: Update Source Code Pro and include italics --- src/librustdoc/html/static/COPYRIGHT.txt | 3 ++- src/librustdoc/html/static/SourceCodePro-It.ttf.woff | Bin 0 -> 84264 bytes .../html/static/SourceCodePro-Regular.ttf.woff | Bin 0 -> 95872 bytes src/librustdoc/html/static/SourceCodePro-Regular.woff | Bin 55472 -> 0 bytes .../html/static/SourceCodePro-Semibold.ttf.woff | Bin 0 -> 95576 bytes src/librustdoc/html/static/SourceCodePro-Semibold.woff | Bin 55360 -> 0 bytes src/librustdoc/html/static/rustdoc.css | 10 ++++++++-- 7 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/librustdoc/html/static/SourceCodePro-It.ttf.woff create mode 100644 src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff delete mode 100644 src/librustdoc/html/static/SourceCodePro-Regular.woff create mode 100644 src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff delete mode 100644 src/librustdoc/html/static/SourceCodePro-Semibold.woff (limited to 'src/librustdoc/html/static') diff --git a/src/librustdoc/html/static/COPYRIGHT.txt b/src/librustdoc/html/static/COPYRIGHT.txt index af77776cca4..24bdca6544d 100644 --- a/src/librustdoc/html/static/COPYRIGHT.txt +++ b/src/librustdoc/html/static/COPYRIGHT.txt @@ -23,7 +23,8 @@ included, and carry their own copyright notices and license terms: Copyright (c) Nicolas Gallagher and Jonathan Neal. Licensed under the MIT license (see LICENSE-MIT.txt). -* Source Code Pro (SourceCodePro-Regular.woff, SourceCodePro-Semibold.woff): +* Source Code Pro (SourceCodePro-Regular.ttf.woff, + SourceCodePro-Semibold.ttf.woff, SourceCodePro-It.ttf.woff): Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark diff --git a/src/librustdoc/html/static/SourceCodePro-It.ttf.woff b/src/librustdoc/html/static/SourceCodePro-It.ttf.woff new file mode 100644 index 00000000000..ebaaf91de06 Binary files /dev/null and b/src/librustdoc/html/static/SourceCodePro-It.ttf.woff differ diff --git a/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff b/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff new file mode 100644 index 00000000000..117c7e5142c Binary files /dev/null and b/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff differ diff --git a/src/librustdoc/html/static/SourceCodePro-Regular.woff b/src/librustdoc/html/static/SourceCodePro-Regular.woff deleted file mode 100644 index 5576670903a..00000000000 Binary files a/src/librustdoc/html/static/SourceCodePro-Regular.woff and /dev/null differ diff --git a/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff b/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff new file mode 100644 index 00000000000..270873a86a0 Binary files /dev/null and b/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff differ diff --git a/src/librustdoc/html/static/SourceCodePro-Semibold.woff b/src/librustdoc/html/static/SourceCodePro-Semibold.woff deleted file mode 100644 index ca972a11dc4..00000000000 Binary files a/src/librustdoc/html/static/SourceCodePro-Semibold.woff and /dev/null differ diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 64c858238db..6d2f6c7eda6 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -39,13 +39,19 @@ font-weight: 400; /* Avoid using locally installed font because bad versions are in circulation: * see https://github.com/rust-lang/rust/issues/24355 */ - src: url("SourceCodePro-Regular.woff") format('woff'); + src: url("SourceCodePro-Regular.ttf.woff") format('woff'); +} +@font-face { + font-family: 'Source Code Pro'; + font-style: italic; + font-weight: 400; + src: url("SourceCodePro-It.ttf.woff") format('woff'); } @font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 600; - src: url("SourceCodePro-Semibold.woff") format('woff'); + src: url("SourceCodePro-Semibold.ttf.woff") format('woff'); } * { -- cgit 1.4.1-3-g733a5