Skip to content

Commit 8b56beb

Browse files
author
Joshua Nelson
authored
Rollup merge of rust-lang#83650 - tspiteri:source-serif-4, r=GuillaumeGomez
Update Source Serif to release 4.004 Now the family name is Source Serif 4 (upstream issue 77) instead of Source Serif Pro.
2 parents 385a1b0 + 70b0874 commit 8b56beb

13 files changed

+36
-37
lines changed

src/librustdoc/html/render/write_shared.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ crate static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
2626
"FiraSans-Regular.woff" => static_files::fira_sans::REGULAR,
2727
"FiraSans-Medium.woff" => static_files::fira_sans::MEDIUM,
2828
"FiraSans-LICENSE.txt" => static_files::fira_sans::LICENSE,
29-
"SourceSerifPro-Regular.ttf.woff" => static_files::source_serif_pro::REGULAR,
30-
"SourceSerifPro-Bold.ttf.woff" => static_files::source_serif_pro::BOLD,
31-
"SourceSerifPro-It.ttf.woff" => static_files::source_serif_pro::ITALIC,
32-
"SourceSerifPro-LICENSE.md" => static_files::source_serif_pro::LICENSE,
29+
"SourceSerif4-Regular.ttf.woff" => static_files::source_serif_4::REGULAR,
30+
"SourceSerif4-Bold.ttf.woff" => static_files::source_serif_4::BOLD,
31+
"SourceSerif4-It.ttf.woff" => static_files::source_serif_4::ITALIC,
32+
"SourceSerif4-LICENSE.md" => static_files::source_serif_4::LICENSE,
3333
"SourceCodePro-Regular.ttf.woff" => static_files::source_code_pro::REGULAR,
3434
"SourceCodePro-Semibold.ttf.woff" => static_files::source_code_pro::SEMIBOLD,
3535
"SourceCodePro-It.ttf.woff" => static_files::source_code_pro::ITALIC,

src/librustdoc/html/static/COPYRIGHT.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ included, and carry their own copyright notices and license terms:
3333
Licensed under the SIL Open Font License, Version 1.1.
3434
See SourceCodePro-LICENSE.txt.
3535

36-
* Source Serif Pro (SourceSerifPro-Regular.ttf.woff,
37-
SourceSerifPro-Bold.ttf.woff, SourceSerifPro-It.ttf.woff):
36+
* Source Serif 4 (SourceSerif4-Regular.ttf.woff, SourceSerif4-Bold.ttf.woff,
37+
SourceSerif4-It.ttf.woff):
3838

39-
Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with
40-
Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of
41-
Adobe Systems Incorporated in the United States and/or other countries.
39+
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name
40+
'Source'. All Rights Reserved. Source is a trademark of Adobe in the United
41+
States and/or other countries.
4242

4343
Licensed under the SIL Open Font License, Version 1.1.
44-
See SourceSerifPro-LICENSE.txt.
44+
See SourceSerif4-LICENSE.md.
4545

4646
This copyright file is intended to be distributed with rustdoc output.
Binary file not shown.
Binary file not shown.

src/librustdoc/html/static/SourceSerifPro-LICENSE.md renamed to src/librustdoc/html/static/SourceSerif4-LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
1+
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
22

33
This Font Software is licensed under the SIL Open Font License, Version 1.1.
44

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/librustdoc/html/static/rustdoc.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@
1818
font-display: swap;
1919
}
2020

21-
/* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license. */
21+
/* See SourceSerif4-LICENSE.md for the Source Serif 4 license. */
2222
@font-face {
23-
font-family: 'Source Serif Pro';
23+
font-family: 'Source Serif 4';
2424
font-style: normal;
2525
font-weight: 400;
26-
src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff');
26+
src: local('Source Serif 4'), url("SourceSerif4-Regular.ttf.woff") format('woff');
2727
font-display: swap;
2828
}
2929
@font-face {
30-
font-family: 'Source Serif Pro';
30+
font-family: 'Source Serif 4';
3131
font-style: italic;
3232
font-weight: 400;
33-
src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff');
33+
src: local('Source Serif 4 Italic'), url("SourceSerif4-It.ttf.woff") format('woff');
3434
font-display: swap;
3535
}
3636
@font-face {
37-
font-family: 'Source Serif Pro';
37+
font-family: 'Source Serif 4';
3838
font-style: normal;
3939
font-weight: 700;
40-
src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff');
40+
src: local('Source Serif 4 Bold'), url("SourceSerif4-Bold.ttf.woff") format('woff');
4141
font-display: swap;
4242
}
4343

@@ -90,7 +90,7 @@ html {
9090
/* General structure and fonts */
9191

9292
body {
93-
font: 16px/1.4 "Source Serif Pro", serif;
93+
font: 16px/1.4 "Source Serif 4", serif;
9494
margin: 0;
9595
position: relative;
9696
padding: 10px 15px 20px 15px;

src/librustdoc/html/static_files.rs

+10-11
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,19 @@ crate mod fira_sans {
8989
crate static LICENSE: &[u8] = include_bytes!("static/FiraSans-LICENSE.txt");
9090
}
9191

92-
/// Files related to the Source Serif Pro font.
93-
crate mod source_serif_pro {
94-
/// The file `SourceSerifPro-Regular.ttf.woff`, the Regular variant of the Source Serif Pro
95-
/// font.
96-
crate static REGULAR: &[u8] = include_bytes!("static/SourceSerifPro-Regular.ttf.woff");
92+
/// Files related to the Source Serif 4 font.
93+
crate mod source_serif_4 {
94+
/// The file `SourceSerif4-Regular.ttf.woff`, the Regular variant of the Source Serif 4 font.
95+
crate static REGULAR: &[u8] = include_bytes!("static/SourceSerif4-Regular.ttf.woff");
9796

98-
/// The file `SourceSerifPro-Bold.ttf.woff`, the Bold variant of the Source Serif Pro font.
99-
crate static BOLD: &[u8] = include_bytes!("static/SourceSerifPro-Bold.ttf.woff");
97+
/// The file `SourceSerif4-Bold.ttf.woff`, the Bold variant of the Source Serif 4 font.
98+
crate static BOLD: &[u8] = include_bytes!("static/SourceSerif4-Bold.ttf.woff");
10099

101-
/// The file `SourceSerifPro-It.ttf.woff`, the Italic variant of the Source Serif Pro font.
102-
crate static ITALIC: &[u8] = include_bytes!("static/SourceSerifPro-It.ttf.woff");
100+
/// The file `SourceSerif4-It.ttf.woff`, the Italic variant of the Source Serif 4 font.
101+
crate static ITALIC: &[u8] = include_bytes!("static/SourceSerif4-It.ttf.woff");
103102

104-
/// The file `SourceSerifPro-LICENSE.txt`, the license text for the Source Serif Pro font.
105-
crate static LICENSE: &[u8] = include_bytes!("static/SourceSerifPro-LICENSE.md");
103+
/// The file `SourceSerif4-LICENSE.txt`, the license text for the Source Serif 4 font.
104+
crate static LICENSE: &[u8] = include_bytes!("static/SourceSerif4-LICENSE.md");
106105
}
107106

108107
/// Files related to the Source Code Pro font.

src/test/run-make-fulldeps/print-unversioned-files/unversioned-files.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SourceCodePro-It.ttf.woff
1010
SourceCodePro-LICENSE.txt
1111
SourceCodePro-Regular.ttf.woff
1212
SourceCodePro-Semibold.ttf.woff
13-
SourceSerifPro-Bold.ttf.woff
14-
SourceSerifPro-It.ttf.woff
15-
SourceSerifPro-LICENSE.md
16-
SourceSerifPro-Regular.ttf.woff
13+
SourceSerif4-Bold.ttf.woff
14+
SourceSerif4-It.ttf.woff
15+
SourceSerif4-LICENSE.md
16+
SourceSerif4-Regular.ttf.woff

src/test/run-make/emit-shared-files/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ invocation-only:
1414
[ -e $(INVOCATION_ONLY)/x/index.html ]
1515
[ -e $(INVOCATION_ONLY)/theme-xxx.css ] # generated from z.css
1616
! [ -e $(INVOCATION_ONLY)/storage-xxx.js ]
17-
! [ -e $(INVOCATION_ONLY)/SourceSerifPro-It.ttf.woff ]
17+
! [ -e $(INVOCATION_ONLY)/SourceSerif4-It.ttf.woff ]
1818

1919
# FIXME: this probably shouldn't have a suffix
2020
[ -e $(INVOCATION_ONLY)/y-xxx.css ]
@@ -24,7 +24,7 @@ invocation-only:
2424
toolchain-only:
2525
$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources --output $(TOOLCHAIN_ONLY) --resource-suffix=-xxx --extend-css z.css x.rs
2626
[ -e $(TOOLCHAIN_ONLY)/storage-xxx.js ]
27-
! [ -e $(TOOLCHAIN_ONLY)/SourceSerifPro-It.ttf.woff ]
27+
! [ -e $(TOOLCHAIN_ONLY)/SourceSerif4-It.ttf.woff ]
2828
! [ -e $(TOOLCHAIN_ONLY)/search-index-xxx.js ]
2929
! [ -e $(TOOLCHAIN_ONLY)/x/index.html ]
3030
! [ -e $(TOOLCHAIN_ONLY)/theme.css ]
@@ -35,7 +35,7 @@ toolchain-only:
3535
all-shared:
3636
$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources,unversioned-shared-resources --output $(ALL_SHARED) --resource-suffix=-xxx --extend-css z.css x.rs
3737
[ -e $(ALL_SHARED)/storage-xxx.js ]
38-
[ -e $(ALL_SHARED)/SourceSerifPro-It.ttf.woff ]
38+
[ -e $(ALL_SHARED)/SourceSerif4-It.ttf.woff ]
3939
! [ -e $(ALL_SHARED)/search-index-xxx.js ]
4040
! [ -e $(ALL_SHARED)/settings.html ]
4141
! [ -e $(ALL_SHARED)/x ]

0 commit comments

Comments
 (0)