mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
gfx: Implement font-stretch
per CSS3-FONTS § 3.3 in the Core Text
font backend.
This commit is contained in:
parent
aba5c16091
commit
abddfa742f
8 changed files with 101 additions and 44 deletions
|
@ -140,7 +140,9 @@ 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::oblique);
|
||||
style.font_stretch,
|
||||
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