FontDescription.equal

Compares two font descriptions for equality.

Two font descriptions are considered equal if the fonts they describe are provably identical. This means that their masks do not have to match, as long as other fields are all the same. (Two font descriptions may result in identical fonts being loaded, but still compare false.)

class FontDescription
bool
equal

Parameters

desc2 pango.font_description.FontDescription

Return Value

Type: bool

true if the two font descriptions are identical, false otherwise.