]> git.lizzy.rs Git - rust.git/commitdiff
Revert "Update Source Code Pro and include italics"
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 21 Nov 2019 10:18:23 +0000 (11:18 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 21 Nov 2019 10:18:23 +0000 (11:18 +0100)
This reverts commit ea9519bf16f0be137a814a49c9fbaf232ba49a43.

src/librustdoc/html/render.rs
src/librustdoc/html/static/COPYRIGHT.txt
src/librustdoc/html/static/SourceCodePro-It.ttf.woff [deleted file]
src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff [deleted file]
src/librustdoc/html/static/SourceCodePro-Regular.woff [new file with mode: 0644]
src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff [deleted file]
src/librustdoc/html/static/SourceCodePro-Semibold.woff [new file with mode: 0644]
src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static_files.rs

index bd2a6602e16bee657c9778ed87ae49f492e08c22..ba481655becb7535ba46ef59fae66d589b1c1a0b 100644 (file)
@@ -697,12 +697,10 @@ fn write_shared(
           static_files::source_serif_pro::ITALIC)?;
     write(cx.dst.join("SourceSerifPro-LICENSE.md"),
           static_files::source_serif_pro::LICENSE)?;
-    write(cx.dst.join("SourceCodePro-Regular.ttf.woff"),
+    write(cx.dst.join("SourceCodePro-Regular.woff"),
           static_files::source_code_pro::REGULAR)?;
-    write(cx.dst.join("SourceCodePro-Semibold.ttf.woff"),
+    write(cx.dst.join("SourceCodePro-Semibold.woff"),
           static_files::source_code_pro::SEMIBOLD)?;
-    write(cx.dst.join("SourceCodePro-It.ttf.woff"),
-          static_files::source_code_pro::ITALIC)?;
     write(cx.dst.join("SourceCodePro-LICENSE.txt"),
           static_files::source_code_pro::LICENSE)?;
     write(cx.dst.join("LICENSE-MIT.txt"),
index 24bdca6544d6dc988d93b1d0e72e9ebba3a4c74a..af77776cca431b6d88da119f16e64f66f0834f37 100644 (file)
@@ -23,8 +23,7 @@ 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.ttf.woff,
-    SourceCodePro-Semibold.ttf.woff, SourceCodePro-It.ttf.woff):
+* Source Code Pro (SourceCodePro-Regular.woff, SourceCodePro-Semibold.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
deleted file mode 100644 (file)
index ebaaf91..0000000
Binary files a/src/librustdoc/html/static/SourceCodePro-It.ttf.woff and /dev/null differ
diff --git a/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff b/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff
deleted file mode 100644 (file)
index 117c7e5..0000000
Binary files a/src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff and /dev/null differ
diff --git a/src/librustdoc/html/static/SourceCodePro-Regular.woff b/src/librustdoc/html/static/SourceCodePro-Regular.woff
new file mode 100644 (file)
index 0000000..5576670
Binary files /dev/null and b/src/librustdoc/html/static/SourceCodePro-Regular.woff differ
diff --git a/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff b/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff
deleted file mode 100644 (file)
index 270873a..0000000
Binary files a/src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff and /dev/null differ
diff --git a/src/librustdoc/html/static/SourceCodePro-Semibold.woff b/src/librustdoc/html/static/SourceCodePro-Semibold.woff
new file mode 100644 (file)
index 0000000..ca972a1
Binary files /dev/null and b/src/librustdoc/html/static/SourceCodePro-Semibold.woff differ
index b2c48bf089b1b242416451b7c95a16c91c83cec6..ca798931953b80cd6a4d2db52ca00c77d308bc31 100644 (file)
        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.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');
+       src: url("SourceCodePro-Regular.woff") format('woff');
 }
 @font-face {
        font-family: 'Source Code Pro';
        font-style: normal;
        font-weight: 600;
-       src: url("SourceCodePro-Semibold.ttf.woff") format('woff');
+       src: url("SourceCodePro-Semibold.woff") format('woff');
 }
 
 * {
index 34055f386fbc048c91d6a539f3467d588f40252a..9fc1d76185fb7bf6aa12c41efe419c648f9bfe0c 100644 (file)
@@ -96,15 +96,11 @@ pub mod source_serif_pro {
 
 /// Files related to the Source Code Pro font.
 pub mod source_code_pro {
-    /// The file `SourceCodePro-Regular.ttf.woff`, the Regular variant of the Source Code Pro font.
-    pub static REGULAR: &'static [u8] = include_bytes!("static/SourceCodePro-Regular.ttf.woff");
+    /// The file `SourceCodePro-Regular.woff`, the Regular variant of the Source Code Pro font.
+    pub static REGULAR: &'static [u8] = include_bytes!("static/SourceCodePro-Regular.woff");
 
-    /// The file `SourceCodePro-Semibold.ttf.woff`, the Semibold variant of the Source Code Pro
-    /// font.
-    pub static SEMIBOLD: &'static [u8] = include_bytes!("static/SourceCodePro-Semibold.ttf.woff");
-
-    /// The file `SourceCodePro-It.ttf.woff`, the Italic variant of the Source Code Pro font.
-    pub static ITALIC: &'static [u8] = include_bytes!("static/SourceCodePro-It.ttf.woff");
+    /// The file `SourceCodePro-Semibold.woff`, the Semibold variant of the Source Code Pro font.
+    pub static SEMIBOLD: &'static [u8] = include_bytes!("static/SourceCodePro-Semibold.woff");
 
     /// The file `SourceCodePro-LICENSE.txt`, the license text of the Source Code Pro font.
     pub static LICENSE: &'static [u8] = include_bytes!("static/SourceCodePro-LICENSE.txt");