mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Support 'font-style: oblique'.
This commit is contained in:
parent
58c1b121a7
commit
80a6f0ae08
4 changed files with 44 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue