mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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.
This commit is contained in:
parent
508c3285d8
commit
2ac9747023
5 changed files with 22 additions and 7 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue