Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format gfx platform #21373 #21610

Merged
merged 2 commits into from Sep 7, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Fix comments indentation issue in gfx platform

  • Loading branch information
kingdido999
kingdido999 committed Sep 5, 2018
commit f8d850bf38142eb3c8ea079f56449bd8486f766a
@@ -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 {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.