diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-04-29 17:53:16 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-05-09 12:45:52 -0700 |
commit | 2ac974702394c2c8e7804bd634f644b36ad9be3f (patch) | |
tree | 36cb18b366ec6cb30afe1ecd130e500c1302d3c5 /components/gfx/platform/macos | |
parent | 508c3285d8583b6dc8e0d28339f759c36259d7c5 (diff) | |
download | servo-2ac974702394c2c8e7804bd634f644b36ad9be3f.tar.gz servo-2ac974702394c2c8e7804bd634f644b36ad9be3f.zip |
gfx: Map `sans-serif` to Helvetica on Mac, DejaVu Sans on Linux, and
Roboto on Android.
This matches what I believe the OS native defaults to be.
Partially addresses #9487.
Diffstat (limited to 'components/gfx/platform/macos')
-rw-r--r-- | components/gfx/platform/macos/font_list.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/gfx/platform/macos/font_list.rs b/components/gfx/platform/macos/font_list.rs index f0b629944ed..c0800f94c23 100644 --- a/components/gfx/platform/macos/font_list.rs +++ b/components/gfx/platform/macos/font_list.rs @@ -41,3 +41,7 @@ pub fn system_default_family(_generic_name: &str) -> Option<String> { pub fn last_resort_font_families() -> Vec<String> { vec!("Arial Unicode MS".to_owned(), "Arial".to_owned()) } + +#[cfg(target_os = "macos")] +pub static SANS_SERIF_FONT_FAMILY: &'static str = "Helvetica"; + |