Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Fallback, Stretch, Style, Weight, XFontType};

#[derive(Default)]
pub struct XFont;
impl XFontType for XFont {
	fn fallback(&self, _text: &str, _name: &str, _weight: Weight, _stretch: Stretch, _style: Style) -> Fallback {
		Fallback::default()
	}
	fn system() -> String {
		"sans-serif".to_string()
	}
}