We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extern crate font_kit; fn main() { let names = vec![font_kit::family_name::FamilyName::Title("Arial".to_string())]; let properties = font_kit::properties::Properties { style: font_kit::properties::Style::Normal, weight: font_kit::properties::Weight::BOLD, stretch: font_kit::properties::Stretch::NORMAL, }; let handle = font_kit::source::SystemSource::new().select_best_match(&names, &properties).unwrap(); println!("{:?}", handle); // Path { path: "/usr/share/fonts/corefonts/arial.ttf", font_index: 0 } }
~> fc-match 'Arial :weight=700' --format="%{file}\n" /usr/share/fonts/corefonts/arialbd.ttf
The text was updated successfully, but these errors were encountered:
Works on Ubuntu 18.04, so it's probably a fontconfig's problem on my gentoo.
Will add a test case later.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: