/third_party/skia/modules/canvaskit/ |
D | paragraph.js | 178 function copyArrays(textStyle) { argument 181 textStyle['_colorPtr'] = copyColorToWasm(textStyle['color']); 182 textStyle['_foregroundColorPtr'] = nullptr; // nullptr is 0, from helper.js 183 textStyle['_backgroundColorPtr'] = nullptr; 184 textStyle['_decorationColorPtr'] = nullptr; 185 if (textStyle['foregroundColor']) { 186 …textStyle['_foregroundColorPtr'] = copyColorToWasm(textStyle['foregroundColor'], scratchForeground… 188 if (textStyle['backgroundColor']) { 189 …textStyle['_backgroundColorPtr'] = copyColorToWasm(textStyle['backgroundColor'], scratchBackground… 191 if (textStyle['decorationColor']) { [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | Decorations.cpp | 23 void Decorations::paint(SkCanvas* canvas, const TextStyle& textStyle, const TextLine::ClipContext& … in paint() argument 24 if (textStyle.getDecorationType() == TextDecoration::kNoDecoration) { in paint() 29 calculateThickness(textStyle, context.run->font().refTypeface()); in paint() 32 if ((textStyle.getDecorationType() & decoration) == 0) { in paint() 38 calculatePaint(textStyle); in paint() 44 bool drawGaps = textStyle.getDecorationMode() == TextDecorationMode::kGaps && in paint() 45 textStyle.getDecorationType() == TextDecoration::kUnderline; in paint() 47 switch (textStyle.getDecorationStyle()) { in paint() 49 calculateWaves(textStyle, context.clip); in paint() 134 void Decorations::calculateThickness(TextStyle textStyle, sk_sp<SkTypeface> typeface) { in calculateThickness() argument [all …]
|
D | Decorations.h | 15 …void paint(SkCanvas* canvas, const TextStyle& textStyle, const TextLine::ClipContext& context, SkS… 19 void calculateThickness(TextStyle textStyle, sk_sp<SkTypeface> typeface); 21 void calculatePaint(const TextStyle& textStyle); 22 void calculateWaves(const TextStyle& textStyle, SkRect clip);
|
D | ParagraphImpl.cpp | 898 TextStyle textStyle = paragraphStyle().getTextStyle(); in computeEmptyMetrics() local 900 textStyle = fTextStyles.back().fStyle; in computeEmptyMetrics() 904 textStyle.getFontFamilies(), textStyle.getFontStyle()); in computeEmptyMetrics() 907 SkFont font(typeface, textStyle.getFontSize()); in computeEmptyMetrics() 911 textStyle.getHeightOverride()) { in computeEmptyMetrics() 913 const auto strutHeight = textStyle.getHeight() * textStyle.getFontSize(); in computeEmptyMetrics() 971 for (auto& textStyle : fTextStyles) { in updateFontSize() local 972 textStyle.fStyle.setFontSize(fontSize); in updateFontSize() 994 for (auto& textStyle : fTextStyles) { in updateForegroundPaint() local 995 textStyle.fStyle.setForegroundColor(paint); in updateForegroundPaint() [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/material/ |
D | popup_menu_theme.dart | 38 this.textStyle, 51 final TextStyle textStyle; 59 TextStyle textStyle, 65 textStyle: textStyle ?? this.textStyle, 82 textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t), 92 textStyle, 106 && typedOther.textStyle == textStyle; 115 properties.add(DiagnosticsProperty<TextStyle>('text style', textStyle, defaultValue: null));
|
D | tooltip_theme.dart | 36 this.textStyle, 77 final TextStyle textStyle; 96 TextStyle textStyle, 108 textStyle: textStyle ?? this.textStyle, 131 textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t), 145 textStyle, 165 && typedOther.textStyle == textStyle 180 properties.add(DiagnosticsProperty<TextStyle>('textStyle', textStyle, defaultValue: null));
|
D | circle_avatar.dart | 169 TextStyle textStyle = theme.primaryTextTheme.subhead.copyWith(color: foregroundColor); 172 switch (ThemeData.estimateBrightnessForColor(textStyle.color)) { 183 textStyle = textStyle.copyWith(color: theme.primaryColorLight); 186 textStyle = textStyle.copyWith(color: theme.primaryColorDark); 215 data: theme.iconTheme.copyWith(color: textStyle.color), 217 style: textStyle,
|
D | tooltip.dart | 59 this.textStyle, 136 final TextStyle textStyle; 187 TextStyle textStyle; 295 textStyle: textStyle, 386 textStyle = widget.textStyle ?? tooltipTheme.textStyle ?? defaultTextStyle; 471 this.textStyle, 483 final TextStyle textStyle; 514 style: textStyle,
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | buttons_test.dart | 44 expect(material.textStyle.color, const Color(0xdd000000)); 45 expect(material.textStyle.fontFamily, 'Roboto'); 46 expect(material.textStyle.fontSize, 14); 47 expect(material.textStyle.fontWeight, FontWeight.w500); 64 expect(material.textStyle.color, const Color(0xdd000000)); 65 expect(material.textStyle.fontFamily, 'Roboto'); 66 expect(material.textStyle.fontSize, 14); 67 expect(material.textStyle.fontWeight, FontWeight.w500); 89 expect(material.textStyle.color, const Color(0x61000000)); 90 expect(material.textStyle.fontFamily, 'Roboto'); [all …]
|
D | theme_defaults_test.dart | 29 expect(raw.textStyle.color, const Color(0xdd000000)); 57 expect(raw.textStyle.color, const Color(0x61000000)); 87 expect(raw.textStyle.color, const Color(0xdd000000)); 115 expect(raw.textStyle.color, const Color(0x61000000)); 149 expect(raw.textStyle.color, const Color(0xdd000000)); 176 expect(raw.textStyle.color, const Color(0xdd000000)); 203 expect(raw.textStyle.color, const Color(0x61000000)); 237 expect(raw.textStyle.color, const Color(0xffffffff)); 264 expect(raw.textStyle.color, const Color(0xffffffff));
|
D | popup_menu_theme_test.dart | 14 textStyle: const TextStyle(color: Color(0xffffffff), textBaseline: TextBaseline.alphabetic), 29 expect(popupMenuTheme.textStyle, null); 52 textStyle: const TextStyle(color: Color(0xffffffff)), 181 expect(text.style, popupMenuTheme.textStyle); 195 …const TextStyle textStyle = TextStyle(color: Color(0x00000000), textBaseline: TextBaseline.alphabe… 212 textStyle: textStyle, 250 expect(text.style, textStyle); 268 … textStyle: const TextStyle(color: Color(0xfffff000), textBaseline: TextBaseline.alphabetic),
|
D | tooltip_test.dart | 504 testWidgets('Default tooltip message textStyle - light', (WidgetTester tester) async { 520 final TextStyle textStyle = tester.widget<Text>(find.text(tooltipText)).style; 521 expect(textStyle.color, Colors.white); 522 expect(textStyle.fontFamily, 'Roboto'); 523 expect(textStyle.decoration, TextDecoration.none); 524 …expect(textStyle.debugLabel, '((englishLike body1 2014).merge(blackMountainView body1)).copyWith'); 527 testWidgets('Default tooltip message textStyle - dark', (WidgetTester tester) async { 546 final TextStyle textStyle = tester.widget<Text>(find.text(tooltipText)).style; 547 expect(textStyle.color, Colors.black); 548 expect(textStyle.fontFamily, 'Roboto'); [all …]
|
D | toggle_buttons_theme_test.dart | 140 DefaultTextStyle textStyle; 145 textStyle = tester.firstWidget<DefaultTextStyle>( 148 expect(textStyle.style.color, enabledColor); 179 textStyle = tester.firstWidget<DefaultTextStyle>( 182 expect(textStyle.style.color, selectedColor); 212 textStyle = tester.firstWidget<DefaultTextStyle>( 215 expect(textStyle.style.color, disabledColor);
|
/third_party/flutter/flutter/packages/flutter/test/cupertino/ |
D | theme_test.dart | 54 expect(theme.textTheme.textStyle.fontSize, 17.0); 69 textStyle: TextStyle(color: CupertinoColors.black), 76 expect(theme.textTheme.textStyle.color, CupertinoColors.black); 87 textStyle: TextStyle(fontFamily: 'Skeuomorphic'), 92 expect(theme.textTheme.textStyle.fontFamily, 'Skeuomorphic'); 99 textStyle: TextStyle(fontFamily: 'Skeuomorphic'), 105 expect(theme.textTheme.textStyle.fontFamily, 'Skeuomorphic'); 111 textStyle: TextStyle(fontFamily: 'Flat'), 116 expect(theme.textTheme.textStyle.fontFamily, 'Flat');
|
D | button_test.dart | 232 TextStyle textStyle; 239 textStyle = DefaultTextStyle.of(context).style; 246 expect(textStyle.color, CupertinoColors.activeBlue); 253 textStyle = DefaultTextStyle.of(context).style; 260 expect(textStyle.color, CupertinoColors.white); 275 textStyle = DefaultTextStyle.of(context).style; 281 expect(textStyle.color, CupertinoColors.activeOrange); 289 textStyle = DefaultTextStyle.of(context).style; 295 expect(textStyle.color, CupertinoColors.black);
|
/third_party/skia/modules/canvaskit/tests/ |
D | paragraph.spec.js | 62 textStyle: { property 144 textStyle: { property 175 const textStyle = { variable 180 textStyle: textStyle, property 192 builder.pushPaintStyle(textStyle, fg, bg); 218 textStyle: { property 250 textStyle: { property 281 textStyle: { property 294 textStyle: { property 353 textStyle: { property [all …]
|
/third_party/flutter/skia/tests/ |
D | SkParagraphTest.cpp | 1333 TextStyle textStyle; in DEF_TEST() local 1334 textStyle.setFontFamilies({SkString("Roboto")}); in DEF_TEST() 1335 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kNormal_Weight, SkFontStyle::kNormal_Width, in DEF_TEST() 1337 textStyle.setFontSize(50); in DEF_TEST() 1338 textStyle.setLetterSpacing(1); in DEF_TEST() 1339 textStyle.setWordSpacing(5); in DEF_TEST() 1340 textStyle.setHeight(1); in DEF_TEST() 1341 textStyle.setColor(SK_ColorBLACK); in DEF_TEST() 1344 builder.pushStyle(textStyle); in DEF_TEST() 1397 TextStyle textStyle; in DEF_TEST() local [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/ |
D | banner.dart | 67 this.textStyle = _kTextStyle, 72 assert(textStyle != null); 109 final TextStyle textStyle; 126 text: TextSpan(style: textStyle, text: message), 152 || textStyle != oldDelegate.textStyle; 253 this.textStyle = _kTextStyle, 257 assert(textStyle != null), 300 final TextStyle textStyle; 312 textStyle: textStyle, 326 textStyle?.debugFillProperties(properties, prefix: 'text ');
|
/third_party/flutter/skia/samplecode/ |
D | SampleParagraph.cpp | 981 TextStyle textStyle; in drawText() local 982 textStyle.setFontFamilies({SkString("Roboto")}); in drawText() 983 textStyle.setFontSize(30); in drawText() 984 textStyle.setLetterSpacing(letterSpace); in drawText() 985 textStyle.setColor(SK_ColorBLACK); in drawText() 986 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kMedium_Weight, SkFontStyle::kNormal_Width, in drawText() 990 builder.pushStyle(textStyle); in drawText() 1051 TextStyle textStyle; in drawText() local 1052 textStyle.setFontFamilies({SkString("Roboto")}); in drawText() 1053 textStyle.setFontSize(30); in drawText() [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/ |
D | text_theme.dart | 132 /// defaults of other attributes such as [textStyle] and [actionTextStyle] 141 TextStyle textStyle, 151 _textStyle = textStyle, 166 …TextStyle get textStyle => _textStyle ?? (_isLight ? _kDefaultLightTextStyle : _kDefaultDarkTextSt… 221 TextStyle textStyle, 233 textStyle: textStyle ?? _textStyle,
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 2530 TextStyle textStyle; in UNIX_ONLY_TEST() local 2531 textStyle.setFontFamilies({SkString("Roboto")}); in UNIX_ONLY_TEST() 2532 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kNormal_Weight, SkFontStyle::kNormal_Width, in UNIX_ONLY_TEST() 2534 textStyle.setFontSize(50); in UNIX_ONLY_TEST() 2535 textStyle.setLetterSpacing(1); in UNIX_ONLY_TEST() 2536 textStyle.setWordSpacing(5); in UNIX_ONLY_TEST() 2537 textStyle.setHeight(1); in UNIX_ONLY_TEST() 2538 textStyle.setColor(SK_ColorBLACK); in UNIX_ONLY_TEST() 2541 builder.pushStyle(textStyle); in UNIX_ONLY_TEST() 2594 TextStyle textStyle; in UNIX_ONLY_TEST() local [all …]
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | text_test.dart | 184 const TextStyle textStyle = TextStyle(fontFamily: 'Ahem'); 194 style: textStyle, 228 const TextStyle textStyle = TextStyle(fontFamily: 'Ahem'); 238 style: textStyle, 267 const TextStyle textStyle = TextStyle(fontFamily: 'Ahem'); 277 style: textStyle, 312 const TextStyle textStyle = TextStyle(fontFamily: 'Ahem'); 316 style: textStyle, 376 const TextStyle textStyle = TextStyle(fontFamily: 'Ahem'); 398 style: textStyle, [all …]
|
D | editable_text_show_on_screen_test.dart | 13 const TextStyle textStyle = TextStyle(); 32 style: textStyle, 75 style: textStyle, 120 style: textStyle, 170 style: textStyle, 265 style: textStyle, 321 style: textStyle,
|
/third_party/flutter/flutter/examples/catalog/lib/ |
D | tabbed_app_bar.dart | 62 final TextStyle textStyle = Theme.of(context).textTheme.display1; 70 Icon(choice.icon, size: 128.0, color: textStyle.color), 71 Text(choice.title, style: textStyle),
|
/third_party/flutter/flutter/packages/flutter/lib/src/painting/ |
D | strut_style.dart | 315 /// the provided [textStyle]. 317 /// The [textStyle] parameter must not be null. 319 /// The named parameters override the [textStyle]'s argument's properties. 327 /// When [textStyle] has a package and a new [package] is also specified, 329 /// [textStyle]'s package data is inherited by being prepended onto the 334 TextStyle textStyle, { 345 }) : assert(textStyle != null), 349 … != null ? (package == null ? fontFamily : 'packages/$package/$fontFamily') : textStyle.fontFamily, 350 _fontFamilyFallback = fontFamilyFallback ?? textStyle.fontFamilyFallback, 351 height = height ?? textStyle.height, [all …]
|