Crate fontconfig_parser[][src]

Expand description

This crate provide parsing fontconfig file but not yet complete all features

see https://www.freedesktop.org/software/fontconfig/fontconfig-user.html for more detail infomation of fontconfig file

Example

if let Ok(document_str) = std::fs::read_to_string("/etc/fonts/fonts.conf") {
    let document = fontconfig_parser::parse_document_from_str(&document_str).unwrap();
}

Structs

https://www.freedesktop.org/software/fontconfig/fontconfig-user.html

This element contains a single value which is compared with the target (‘pattern’, ‘font’, ‘scan’ or ‘default’) property “property” (substitute any of the property names seen above). ‘compare’ can be one of “eq”, “not_eq”, “less”, “less_eq”, “more”, “more_eq”, “contains” or “not_contains”. ‘qual’ may either be the default, “any”, in which case the match succeeds if any value associated with the property matches the test value, or “all”, in which case all of the values associated with the property must match the test value. ‘ignore-blanks’ takes a boolean value. if ‘ignore-blanks’ is set “true”, any blanks in the string will be ignored on its comparison. this takes effects only when compare=“eq” or compare=“not_eq”. When used in a element, the target= attribute in the element selects between matching the original pattern or the font. “default” selects whichever target the outer element has selected.

Enums

Functions

Type Definitions