mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix comments indentation issue in gfx platform
This commit is contained in:
parent
c57c99d9f7
commit
f8d850bf38
1 changed files with 3 additions and 2 deletions
|
@ -211,8 +211,9 @@ impl FontHandleMethods for FontHandle {
|
|||
|
||||
fn boldness(&self) -> FontWeight {
|
||||
let normalized = self.ctfont.all_traits().normalized_weight(); // [-1.0, 1.0]
|
||||
// TODO(emilio): It may make sense to make this range [.01, 10.0], to
|
||||
// align with css-fonts-4's range of [1, 1000].
|
||||
|
||||
// TODO(emilio): It may make sense to make this range [.01, 10.0], to
|
||||
// align with css-fonts-4's range of [1, 1000].
|
||||
let normalized = if normalized <= 0.0 {
|
||||
4.0 + normalized * 3.0 // [1.0, 4.0]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue