aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortigercosmos <b04209032@ntu.edu.tw>2017-10-18 00:50:03 +0800
committertigercosmos <b04209032@ntu.edu.tw>2017-10-18 00:50:03 +0800
commit81ed4ea7be2bb40ffdd403bad4ae2f7e74c71d90 (patch)
tree6271ab1cb9997d64b72fbd3e9561de6e7022d94a
parentc1e0889971582488ed7a4d3a3af21a49bf497abc (diff)
downloadservo-81ed4ea7be2bb40ffdd403bad4ae2f7e74c71d90.tar.gz
servo-81ed4ea7be2bb40ffdd403bad4ae2f7e74c71d90.zip
clean up cjk for os
-rw-r--r--components/gfx/platform/freetype/font_list.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/components/gfx/platform/freetype/font_list.rs b/components/gfx/platform/freetype/font_list.rs
index 8f2898ae680..c4f0cfe4fec 100644
--- a/components/gfx/platform/freetype/font_list.rs
+++ b/components/gfx/platform/freetype/font_list.rs
@@ -132,7 +132,6 @@ pub fn system_default_family(generic_name: &str) -> Option<String> {
}
}
-#[cfg(target_os = "linux")]
pub fn last_resort_font_families() -> Vec<String> {
vec!(
"Fira Sans".to_owned(),
@@ -141,16 +140,4 @@ pub fn last_resort_font_families() -> Vec<String> {
)
}
-#[cfg(target_os = "windows")]
-pub fn last_resort_font_families() -> Vec<String> {
- vec!(
- "Arial".to_owned()
- )
-}
-
-#[cfg(target_os = "linux")]
pub static SANS_SERIF_FONT_FAMILY: &'static str = "DejaVu Sans";
-
-#[cfg(target_os = "windows")]
-pub static SANS_SERIF_FONT_FAMILY: &'static str = "Arial";
-