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
I feel it would be nice to hide the CStr's from the API here:
CStr
pub fn add_string(&mut self, name: &CStr, val: &CStr)
and have a type for the different kinds of key values, which could then be safely converted internally to an FcPattern.
I am imagining a safe type something like
pub enum PatternKeyValue = Family: &str, Style: &str, : Lang: &str, Charset: u32, : Variable: bool; :
Any thoughts?
The text was updated successfully, but these errors were encountered:
Sounds reasonable. Like a more general version of find, which takes care of the c strings if you're only matching on family and style:
find
fontconfig-rs/fontconfig/src/lib.rs
Line 142 in da4c674
Sorry, something went wrong.
No branches or pull requests
I feel it would be nice to hide the
CStr
's from the API here:and have a type for the different kinds of key values,
which could then be safely converted internally to an FcPattern.
I am imagining a safe type something like
Any thoughts?
The text was updated successfully, but these errors were encountered: