summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-02-26 00:38:05 -0800
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-02-26 00:38:05 -0800
commitad7ed13eab09f2bb9311e4338de0fb347e700e73 (patch)
treeece2a1366f40603e24db12ef674c165bf5af37d9 /src/librustdoc/html/render
parentc47903f063465f3a2f963613d290e84e43dd510f (diff)
downloadrust-ad7ed13eab09f2bb9311e4338de0fb347e700e73.tar.gz
rust-ad7ed13eab09f2bb9311e4338de0fb347e700e73.zip
Embed woff2 files in rustdoc binary.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index f5eb92c1bb5..507ae8e3e2c 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -883,6 +883,8 @@ themePicker.onblur = handleThemeButtonsBlur;
         static_files::NORMALIZE_CSS,
         options.enable_minification,
     )?;
+    write(cx.dst.join("FiraSans-Regular.woff2"), static_files::fira_sans::REGULAR2)?;
+    write(cx.dst.join("FiraSans-Medium.woff2"), static_files::fira_sans::MEDIUM2)?;
     write(cx.dst.join("FiraSans-Regular.woff"), static_files::fira_sans::REGULAR)?;
     write(cx.dst.join("FiraSans-Medium.woff"), static_files::fira_sans::MEDIUM)?;
     write(cx.dst.join("FiraSans-LICENSE.txt"), static_files::fira_sans::LICENSE)?;