diff options
Diffstat (limited to 'components/gfx/font_cache_thread.rs')
-rw-r--r-- | components/gfx/font_cache_thread.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs index 558d8b170a6..d71081d126c 100644 --- a/components/gfx/font_cache_thread.rs +++ b/components/gfx/font_cache_thread.rs @@ -133,11 +133,11 @@ struct FontCache { fn populate_generic_fonts() -> HashMap<FontFamily, LowercaseString> { let mut generic_fonts = HashMap::with_capacity(5); - append_map(&mut generic_fonts, FontFamily::Serif, "Times New Roman"); - append_map(&mut generic_fonts, FontFamily::SansSerif, SANS_SERIF_FONT_FAMILY); - append_map(&mut generic_fonts, FontFamily::Cursive, "Apple Chancery"); - append_map(&mut generic_fonts, FontFamily::Fantasy, "Papyrus"); - append_map(&mut generic_fonts, FontFamily::Monospace, "Menlo"); + append_map(&mut generic_fonts, FontFamily::Generic(atom!("serif")), "Times New Roman"); + append_map(&mut generic_fonts, FontFamily::Generic(atom!("sans-serif")), SANS_SERIF_FONT_FAMILY); + append_map(&mut generic_fonts, FontFamily::Generic(atom!("cursive")), "Apple Chancery"); + append_map(&mut generic_fonts, FontFamily::Generic(atom!("fantasy")), "Papyrus"); + append_map(&mut generic_fonts, FontFamily::Generic(atom!("monospace")), "Menlo"); fn append_map(generic_fonts: &mut HashMap<FontFamily, LowercaseString>, font_family: FontFamily, |