telar-platform-android 0.1.1

Android platform backend for Telar, built on android-activity.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

// The Android system font directory, scanned for fallback family resolution.
pub fn system_fonts_dir() -> PathBuf {
    PathBuf::from("/system/fonts")
}

// Sans-serif family names to try, in priority order, across Android OEM font stacks (AOSP Roboto,
// legacy Droid, Xiaomi MiSans, Noto).
pub fn sans_serif_candidates() -> Vec<String> {
    vec![
        "Roboto".to_string(),
        "Droid Sans".to_string(),
        "MiSans Latin".to_string(),
        "Noto Sans".to_string(),
    ]
}