Skip to content

Commit

Permalink
Fix comments indentation issue in gfx platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Sep 5, 2018
1 parent c57c99d commit f8d850b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/gfx/platform/macos/font.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit f8d850b

Please sign in to comment.