freya-core 0.4.0-rc.7

Reactivity runtime, tree management, accessibility integration, rendering pipeline and more, for Freya
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::borrow::Cow;

pub fn default_fonts() -> Vec<Cow<'static, str>> {
    let mut fonts = vec!["Noto Sans".into(), "Arial".into()];
    if cfg!(target_os = "windows") {
        fonts.insert(0, "Segoe UI".into());
        fonts.insert(1, "Segoe UI Emoji".into());
    } else if cfg!(target_os = "macos") {
        fonts.insert(0, ".AppleSystemUIFont".into());
    } else if cfg!(target_os = "linux") {
        fonts.insert(0, "Ubuntu".into());
    }
    fonts
}