Struct fontconfig_parser::Test
source · [−]pub struct Test {
pub qual: TestQual,
pub target: TestTarget,
pub compare: TestCompare,
pub value: Property,
}
Expand description
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
Fields
qual: TestQual
target: TestTarget
compare: TestCompare
value: Property