Lines Matching refs:FontFamily
8 pub enum FontFamily<'a> { enum
19 impl<'a> FontFamily<'a> { implementation
24 FontFamily::Serif => "serif", in as_str()
25 FontFamily::SansSerif => "sans-serif", in as_str()
26 FontFamily::Monospace => "monospace", in as_str()
27 FontFamily::Name(face) => face, in as_str()
32 impl<'a> From<&'a str> for FontFamily<'a> { implementation
33 fn from(from: &'a str) -> FontFamily<'a> { in from()
35 "serif" => FontFamily::Serif, in from()
36 "sans-serif" => FontFamily::SansSerif, in from()
37 "monospace" => FontFamily::Monospace, in from()
38 _ => FontFamily::Name(from), in from()
234 fn family(&self) -> FontFamily; in family() argument