mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 22:16:53 +00:00
Update Source Code Pro and include italics
This commit is contained in:
parent
66ec64ccf3
commit
87d17bb9e8
@ -30,8 +30,9 @@ crate static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
|
||||
"SourceSerifPro-Bold.ttf.woff" => static_files::source_serif_pro::BOLD,
|
||||
"SourceSerifPro-It.ttf.woff" => static_files::source_serif_pro::ITALIC,
|
||||
"SourceSerifPro-LICENSE.md" => static_files::source_serif_pro::LICENSE,
|
||||
"SourceCodePro-Regular.woff" => static_files::source_code_pro::REGULAR,
|
||||
"SourceCodePro-Semibold.woff" => static_files::source_code_pro::SEMIBOLD,
|
||||
"SourceCodePro-Regular.ttf.woff" => static_files::source_code_pro::REGULAR,
|
||||
"SourceCodePro-Semibold.ttf.woff" => static_files::source_code_pro::SEMIBOLD,
|
||||
"SourceCodePro-It.ttf.woff" => static_files::source_code_pro::ITALIC,
|
||||
"SourceCodePro-LICENSE.txt" => static_files::source_code_pro::LICENSE,
|
||||
"LICENSE-MIT.txt" => static_files::LICENSE_MIT,
|
||||
"LICENSE-APACHE.txt" => static_files::LICENSE_APACHE,
|
||||
|
@ -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
|
||||
|
BIN
src/librustdoc/html/static/SourceCodePro-It.ttf.woff
Normal file
BIN
src/librustdoc/html/static/SourceCodePro-It.ttf.woff
Normal file
Binary file not shown.
BIN
src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff
Normal file
BIN
src/librustdoc/html/static/SourceCodePro-Regular.ttf.woff
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff
Normal file
BIN
src/librustdoc/html/static/SourceCodePro-Semibold.ttf.woff
Normal file
Binary file not shown.
Binary file not shown.
@ -48,14 +48,21 @@
|
||||
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-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url("SourceCodePro-It.ttf.woff") format('woff');
|
||||
font-display: swap;
|
||||
}
|
||||
@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');
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
@ -107,11 +107,15 @@ crate mod source_serif_pro {
|
||||
|
||||
/// Files related to the Source Code Pro font.
|
||||
crate mod source_code_pro {
|
||||
/// The file `SourceCodePro-Regular.woff`, the Regular variant of the Source Code Pro font.
|
||||
crate static REGULAR: &[u8] = include_bytes!("static/SourceCodePro-Regular.woff");
|
||||
/// The file `SourceCodePro-Regular.ttf.woff`, the Regular variant of the Source Code Pro font.
|
||||
crate static REGULAR: &[u8] = include_bytes!("static/SourceCodePro-Regular.ttf.woff");
|
||||
|
||||
/// The file `SourceCodePro-Semibold.woff`, the Semibold variant of the Source Code Pro font.
|
||||
crate static SEMIBOLD: &[u8] = include_bytes!("static/SourceCodePro-Semibold.woff");
|
||||
/// The file `SourceCodePro-Semibold.ttf.woff`, the Semibold variant of the Source Code Pro
|
||||
/// font.
|
||||
crate static SEMIBOLD: &[u8] = include_bytes!("static/SourceCodePro-Semibold.ttf.woff");
|
||||
|
||||
/// The file `SourceCodePro-It.ttf.woff`, the Italic variant of the Source Code Pro font.
|
||||
crate static ITALIC: &[u8] = include_bytes!("static/SourceCodePro-It.ttf.woff");
|
||||
|
||||
/// The file `SourceCodePro-LICENSE.txt`, the license text of the Source Code Pro font.
|
||||
crate static LICENSE: &[u8] = include_bytes!("static/SourceCodePro-LICENSE.txt");
|
||||
|
@ -6,9 +6,10 @@ FiraSans-Regular.woff
|
||||
FiraSans-Regular.woff2
|
||||
LICENSE-APACHE.txt
|
||||
LICENSE-MIT.txt
|
||||
SourceCodePro-It.ttf.woff
|
||||
SourceCodePro-LICENSE.txt
|
||||
SourceCodePro-Regular.woff
|
||||
SourceCodePro-Semibold.woff
|
||||
SourceCodePro-Regular.ttf.woff
|
||||
SourceCodePro-Semibold.ttf.woff
|
||||
SourceSerifPro-Bold.ttf.woff
|
||||
SourceSerifPro-It.ttf.woff
|
||||
SourceSerifPro-LICENSE.md
|
||||
|
Loading…
Reference in New Issue
Block a user