mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Use integer for specified and computed font-weight
This commit is contained in:
parent
4f0f2fb13e
commit
8b842f5417
11 changed files with 111 additions and 194 deletions
|
@ -46,7 +46,7 @@ impl FontTemplateDescriptor {
|
|||
// A value higher than all weights.
|
||||
return 1000
|
||||
}
|
||||
((self.weight as i16) - (other.weight as i16)).abs() as u32
|
||||
((self.weight.0 as i16) - (other.weight.0 as i16)).abs() as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue