Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Issue 1173323004: Add TextStyle fontFamily:, extend support for fontWeight: (Closed)

Created:
5 years, 6 months ago by hansmuller1
Modified:
5 years, 6 months ago
Reviewers:
hansmuller, Hixie
CC:
abarth-chromium, gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add TextStyle fontFamily:, extend support for fontWeight: Defined constants for all 9 CSS font-weight values with conventional names from the "Common weight name mapping" section of https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight. The FontWeight enum now just enumerates the actual CSS weight values. I've moved the TextStyle class into its own file. R=ianh@google.com Committed: https://chromium.googlesource.com/external/mojo/+/c687468cb79e9c0349a927ea3969b1d2f69f6a55

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Changes per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -110 lines) Patch
M sky/examples/rendering/interactive_flex.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sky/examples/rendering/render_paragraph.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sky/examples/stocks2/lib/stock_row.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/sdk/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A sky/sdk/lib/painting/text_style.dart View 1 1 chunk +135 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/paragraph.dart View 1 2 chunks +2 lines, -97 lines 0 comments Download
M sky/sdk/lib/theme2/typography.dart View 1 1 chunk +12 lines, -12 lines 0 comments Download
M sky/sdk/lib/widgets/basic.dart View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
hansmuller
PTAL
5 years, 6 months ago (2015-06-17 21:27:28 UTC) #4
Hixie
lgtm https://codereview.chromium.org/1173323004/diff/20001/sky/sdk/lib/rendering/text_style.dart File sky/sdk/lib/rendering/text_style.dart (right): https://codereview.chromium.org/1173323004/diff/20001/sky/sdk/lib/rendering/text_style.dart#newcode1 sky/sdk/lib/rendering/text_style.dart:1: // Copyright 2015 The Chromium Authors. All rights ...
5 years, 6 months ago (2015-06-17 21:34:05 UTC) #5
Hixie
I didn't notice the font-family stuff at first. In general it's better to separate the ...
5 years, 6 months ago (2015-06-17 21:35:49 UTC) #6
hansmuller
https://codereview.chromium.org/1173323004/diff/20001/sky/sdk/lib/rendering/text_style.dart File sky/sdk/lib/rendering/text_style.dart (right): https://codereview.chromium.org/1173323004/diff/20001/sky/sdk/lib/rendering/text_style.dart#newcode1 sky/sdk/lib/rendering/text_style.dart:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 6 months ago (2015-06-17 22:45:07 UTC) #7
hansmuller1
Committed patchset #2 (id:40001) manually as c687468cb79e9c0349a927ea3969b1d2f69f6a55 (presubmit successful).
5 years, 6 months ago (2015-06-17 22:48:33 UTC) #8
Hixie
I'm not saying you made up the names. :-) The Web has all kinds of ...
5 years, 6 months ago (2015-06-17 22:49:42 UTC) #9
hansmuller
5 years, 6 months ago (2015-06-17 22:58:29 UTC) #10
Message was sent while issue was closed.
On 2015/06/17 22:49:42, Hixie wrote:
> I'm not saying you made up the names. :-)
> 
> The Web has all kinds of crazy. We should be very careful about what we import
> of that crazy. In this particular case, having labels for 9 values just
doesn't
> work. It's unintuitive. We should just use the numbers, except maybe for
> "normal" and "bold", IMHO.

OK. https://codereview.chromium.org/1189483007/

Powered by Google App Engine
This is Rietveld 408576698