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 Review URL: https://codereview.chromium.org/1173323004.
This commit is contained in:
@@ -6,6 +6,7 @@ import 'dart:sky';
|
||||
import 'dart:math' as math;
|
||||
import 'package:sky/framework/net/image_cache.dart' as image_cache;
|
||||
import 'package:sky/app/view.dart';
|
||||
import 'package:sky/painting/text_style.dart';
|
||||
import 'package:sky/rendering/box.dart';
|
||||
import 'package:sky/rendering/block.dart';
|
||||
import 'package:sky/rendering/flex.dart';
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import 'dart:sky';
|
||||
import 'package:sky/app/view.dart';
|
||||
import 'package:sky/painting/text_style.dart';
|
||||
import 'package:sky/rendering/box.dart';
|
||||
import 'package:sky/rendering/object.dart';
|
||||
import 'package:sky/rendering/flex.dart';
|
||||
|
||||
Reference in New Issue
Block a user