aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx')
-rw-r--r--components/gfx/font_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/font_context.rs b/components/gfx/font_context.rs
index e439d482f64..34e92b21540 100644
--- a/components/gfx/font_context.rs
+++ b/components/gfx/font_context.rs
@@ -140,7 +140,7 @@ impl FontContext {
// so they will never be released. Find out a good time to drop them.
let desc = FontTemplateDescriptor::new(style.font_weight,
- style.font_style == font_style::T::italic);
+ style.font_style == font_style::T::italic || style.font_style == font_style::T::oblique);
let mut fonts = SmallVec8::new();
for family in style.font_family.iter() {