Check for font_variant equality in LayoutFontGroupCacheKey::eq.

This fixes an issue whereby normal text would intermittently be rendered as
small-caps and vice versa.
This commit is contained in:
Ms2ger 2015-10-02 11:02:33 +02:00
parent ba2714f4f6
commit 05ed98a49c

View file

@ -325,6 +325,7 @@ impl PartialEq for LayoutFontGroupCacheKey {
self.pointer.font_stretch == other.pointer.font_stretch &&
self.pointer.font_style == other.pointer.font_style &&
self.pointer.font_weight as u16 == other.pointer.font_weight as u16 &&
self.pointer.font_variant == other.pointer.font_variant &&
self.size == other.size
}
}