Support 'font-style: oblique'.

This commit is contained in:
Deokjin Kim 2015-01-19 19:50:45 +09:00
parent 58c1b121a7
commit 80a6f0ae08
4 changed files with 44 additions and 1 deletions

View file

@ -139,7 +139,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() {