From f8d850bf38142eb3c8ea079f56449bd8486f766a Mon Sep 17 00:00:00 2001 From: kingdido999 Date: Wed, 5 Sep 2018 20:34:01 +0800 Subject: [PATCH] Fix comments indentation issue in gfx platform --- components/gfx/platform/macos/font.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index 1c18b1c6e51..842c52fd70c 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -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 {