Package: pango

Function pango:font-description-better-match

Lambda List

pango:font-description-better-match (desc old new)

Arguments

desc -- a pango:font-description instance
old -- a pango:font-description instance, or nil
new -- a pango:font-description instance

Return Value

True if new is a better match.

Details

Determines if the style attributes of new are a closer match for desc than those of old are, or if old is nil, determines if new is a match at all. Approximate matching is done for weight and style. Other style attributes must match exactly. Style attributes are all attributes other than family and size-related attributes. Approximate matching for style considers :oblique and :italic as matches, but not as good a match as when the styles are equal.

Note that old must match desc.
 

See also

#2023-8-27