Skip to content

Commit d2ac094

Browse files
committed
Update static files code for updated Source Serif Pro font
1 parent aa257ec commit d2ac094

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

src/librustdoc/html/render.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -893,14 +893,12 @@ themePicker.onblur = handleThemeButtonsBlur;
893893
static_files::fira_sans::MEDIUM)?;
894894
write(cx.dst.join("FiraSans-LICENSE.txt"),
895895
static_files::fira_sans::LICENSE)?;
896-
write(cx.dst.join("Heuristica-Italic.woff"),
897-
static_files::heuristica::ITALIC)?;
898-
write(cx.dst.join("Heuristica-LICENSE.txt"),
899-
static_files::heuristica::LICENSE)?;
900-
write(cx.dst.join("SourceSerifPro-Regular.woff"),
896+
write(cx.dst.join("SourceSerifPro-Regular.ttf.woff"),
901897
static_files::source_serif_pro::REGULAR)?;
902-
write(cx.dst.join("SourceSerifPro-Bold.woff"),
898+
write(cx.dst.join("SourceSerifPro-Bold.ttf.woff"),
903899
static_files::source_serif_pro::BOLD)?;
900+
write(cx.dst.join("SourceSerifPro-It.ttf.woff"),
901+
static_files::source_serif_pro::ITALIC)?;
904902
write(cx.dst.join("SourceSerifPro-LICENSE.txt"),
905903
static_files::source_serif_pro::LICENSE)?;
906904
write(cx.dst.join("SourceCodePro-Regular.woff"),

src/librustdoc/html/static_files.rs

+8-13
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,17 @@ pub mod fira_sans {
7373
pub static LICENSE: &'static [u8] = include_bytes!("static/FiraSans-LICENSE.txt");
7474
}
7575

76-
/// Files related to the Heuristica font.
77-
pub mod heuristica {
78-
/// The file `Heuristica-Italic.woff`, the Italic variant of the Heuristica font.
79-
pub static ITALIC: &'static [u8] = include_bytes!("static/Heuristica-Italic.woff");
80-
81-
/// The file `Heuristica-LICENSE.txt`, the license text for the Heuristica font.
82-
pub static LICENSE: &'static [u8] = include_bytes!("static/Heuristica-LICENSE.txt");
83-
}
84-
8576
/// Files related to the Source Serif Pro font.
8677
pub mod source_serif_pro {
87-
/// The file `SourceSerifPro-Regular.woff`, the Regular variant of the Source Serif Pro font.
88-
pub static REGULAR: &'static [u8] = include_bytes!("static/SourceSerifPro-Regular.woff");
78+
/// The file `SourceSerifPro-Regular.ttf.woff`, the Regular variant of the Source Serif Pro
79+
/// font.
80+
pub static REGULAR: &'static [u8] = include_bytes!("static/SourceSerifPro-Regular.ttf.woff");
81+
82+
/// The file `SourceSerifPro-Bold.ttf.woff`, the Bold variant of the Source Serif Pro font.
83+
pub static BOLD: &'static [u8] = include_bytes!("static/SourceSerifPro-Bold.ttf.woff");
8984

90-
/// The file `SourceSerifPro-Bold.woff`, the Bold variant of the Source Serif Pro font.
91-
pub static BOLD: &'static [u8] = include_bytes!("static/SourceSerifPro-Bold.woff");
85+
/// The file `SourceSerifPro-It.ttf.woff`, the Italic variant of the Source Serif Pro font.
86+
pub static ITALIC: &'static [u8] = include_bytes!("static/SourceSerifPro-It.ttf.woff");
9287

9388
/// The file `SourceSerifPro-LICENSE.txt`, the license text for the Source Serif Pro font.
9489
pub static LICENSE: &'static [u8] = include_bytes!("static/SourceSerifPro-LICENSE.txt");

0 commit comments

Comments
 (0)