d-rustdoc-disable-embedded-fonts
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 22 Oct 2021 22:29:14 +0000 (23:29 +0100)
committerXimin Luo <infinity0@debian.org>
Fri, 22 Oct 2021 22:29:14 +0000 (23:29 +0100)
Gbp-Pq: Name d-rustdoc-disable-embedded-fonts.patch

src/librustdoc/html/render/write_shared.rs
src/librustdoc/html/static/css/rustdoc.css
src/librustdoc/html/static_files.rs

index 99cd98f7eaeb84592f18d3287bc35f85cef10842..e3ef35be0cd64d6646a1fd878852fdb94aa14c3a 100644 (file)
@@ -39,8 +39,6 @@ static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
         "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,
-        "noto-sans-kr-v13-korean-regular.woff" => static_files::noto_sans_kr::REGULAR,
-        "noto-sans-kr-v13-korean-regular-LICENSE.txt" => static_files::noto_sans_kr::LICENSE,
         "LICENSE-MIT.txt" => static_files::LICENSE_MIT,
         "LICENSE-APACHE.txt" => static_files::LICENSE_APACHE,
         "COPYRIGHT.txt" => static_files::COPYRIGHT,
index 23ca6eeaf3bb969be1af9f6ab6526bdfa12a0171..789013b1214000b3b9dbad0e875e7c5e6a6d7974 100644 (file)
        font-display: swap;
 }
 
-/* Avoid using legacy CJK serif fonts in Windows like Batang */
-@font-face {
-       font-family: 'Noto Sans KR';
-       src: url("noto-sans-kr-v13-korean-regular.woff") format("woff");
-       font-display: swap;
-       unicode-range: U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF;
-}
-
 * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
@@ -107,7 +99,7 @@ html {
 /* General structure and fonts */
 
 body {
-       font: 16px/1.4 "Source Serif 4", "Noto Sans KR", serif;
+       font: 16px/1.4 "Source Serif 4", serif;
        margin: 0;
        position: relative;
        padding: 10px 15px 20px 15px;
index 6f3d08ea655691350729431fad47730689b2edf2..3f06316b0e6eea497349853af772201b78b895c4 100644 (file)
@@ -158,18 +158,6 @@ crate mod source_code_pro {
     crate static LICENSE: &[u8] = include_bytes!("static/fonts/SourceCodePro-LICENSE.txt");
 }
 
-crate mod noto_sans_kr {
-    /// The file `noto-sans-kr-v13-korean-regular.woff`, the Regular variant of the Noto Sans KR
-    /// font.
-    crate static REGULAR: &[u8] =
-        include_bytes!("static/fonts/noto-sans-kr-v13-korean-regular.woff");
-
-    /// The file `noto-sans-kr-v13-korean-regular-LICENSE.txt`, the license text of the Noto Sans KR
-    /// font.
-    crate static LICENSE: &[u8] =
-        include_bytes!("static/fonts/noto-sans-kr-v13-korean-regular-LICENSE.txt");
-}
-
 /// Files related to the sidebar in rustdoc sources.
 crate mod sidebar {
     /// File script to handle sidebar.