/external/skia/modules/canvaskit/ |
D | paragraph.js | 218 function copyArrays(textStyle) { argument 221 textStyle['_colorPtr'] = copyColorToWasm(textStyle['color']); 222 textStyle['_foregroundColorPtr'] = nullptr; // nullptr is 0, from helper.js 223 textStyle['_backgroundColorPtr'] = nullptr; 224 textStyle['_decorationColorPtr'] = nullptr; 225 if (textStyle['foregroundColor']) { 226 …textStyle['_foregroundColorPtr'] = copyColorToWasm(textStyle['foregroundColor'], scratchForeground… 228 if (textStyle['backgroundColor']) { 229 …textStyle['_backgroundColorPtr'] = copyColorToWasm(textStyle['backgroundColor'], scratchBackground… 231 if (textStyle['decorationColor']) { [all …]
|
D | paragraph_bindings.cpp | 219 SimpleTextStyle textStyle; member 236 auto ts = toTextStyle(s.textStyle); in toParagraphStyle() 533 SimpleTextStyle textStyle) { in EMSCRIPTEN_BINDINGS() argument 534 auto ts = toTextStyle(textStyle); in EMSCRIPTEN_BINDINGS() 543 SimpleTextStyle textStyle, SkPaint foreground, in EMSCRIPTEN_BINDINGS() 545 auto ts = toTextStyle(textStyle); in EMSCRIPTEN_BINDINGS() 593 .field("textStyle", &SimpleParagraphStyle::textStyle) in EMSCRIPTEN_BINDINGS()
|
/external/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 | 894 TextStyle textStyle = paragraphStyle().getTextStyle(); in computeEmptyMetrics() local 896 textStyle = fTextStyles.back().fStyle; in computeEmptyMetrics() 900 textStyle.getFontFamilies(), textStyle.getFontStyle()); in computeEmptyMetrics() 903 SkFont font(typeface, textStyle.getFontSize()); in computeEmptyMetrics() 907 textStyle.getHeightOverride()) { in computeEmptyMetrics() 909 const auto strutHeight = textStyle.getHeight() * textStyle.getFontSize(); in computeEmptyMetrics() 967 for (auto& textStyle : fTextStyles) { in updateFontSize() local 968 textStyle.fStyle.setFontSize(fontSize); in updateFontSize() 990 for (auto& textStyle : fTextStyles) { in updateForegroundPaint() local 991 textStyle.fStyle.setForegroundColor(paint); in updateForegroundPaint() [all …]
|
D | OneLineShaper.cpp | 476 void OneLineShaper::matchResolvedFonts(const TextStyle& textStyle, in matchResolvedFonts() argument 478 …> typefaces = fParagraph->fFontCollection->findTypefaces(textStyle.getFontFamilies(), textStyle.ge… in matchResolvedFonts() 503 FontKey fontKey(unicode, textStyle.getFontStyle(), textStyle.getLocale()); in matchResolvedFonts() 509 unicode, textStyle.getFontStyle(), textStyle.getLocale()); in matchResolvedFonts()
|
D | OneLineShaper.h | 69 void matchResolvedFonts(const TextStyle& textStyle, const TypefaceVisitor& visitor);
|
/external/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 …]
|
/external/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 2517 TextStyle textStyle; in DEF_TEST() local 2518 textStyle.setFontFamilies({SkString("Roboto")}); in DEF_TEST() 2519 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kNormal_Weight, SkFontStyle::kNormal_Width, in DEF_TEST() 2521 textStyle.setFontSize(50); in DEF_TEST() 2522 textStyle.setLetterSpacing(1); in DEF_TEST() 2523 textStyle.setWordSpacing(5); in DEF_TEST() 2524 textStyle.setHeight(1); in DEF_TEST() 2525 textStyle.setColor(SK_ColorBLACK); in DEF_TEST() 2528 builder.pushStyle(textStyle); in DEF_TEST() 2581 TextStyle textStyle; in DEF_TEST() local [all …]
|
/external/skia/modules/skparagraph/include/ |
D | ParagraphStyle.h | 93 void setTextStyle(const TextStyle& textStyle) { fDefaultTextStyle = textStyle; } in setTextStyle()
|
D | TextStyle.h | 317 Placeholder(size_t start, size_t end, const PlaceholderStyle& style, const TextStyle& textStyle, in Placeholder() 321 , fTextStyle(textStyle) in Placeholder()
|
/external/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 988 TextStyle textStyle; in drawText() local 989 textStyle.setFontFamilies({SkString("Roboto")}); in drawText() 990 textStyle.setFontSize(30); in drawText() 991 textStyle.setLetterSpacing(letterSpace); in drawText() 992 textStyle.setColor(SK_ColorBLACK); in drawText() 993 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kMedium_Weight, SkFontStyle::kNormal_Width, in drawText() 997 builder.pushStyle(textStyle); in drawText() 1058 TextStyle textStyle; in drawText() local 1059 textStyle.setFontFamilies({SkString("Roboto")}); in drawText() 1060 textStyle.setFontSize(30); in drawText() [all …]
|
/external/skia/site/docs/user/modules/ |
D | quickstart.md | 269 textStyle: { 299 textStyle: { 326 textStyle: {
|
D | canvaskit.md | 380 textStyle: {
|
/external/skia/modules/canvaskit/npm_build/types/ |
D | index.d.ts | 916 pushPaintStyle(textStyle: TextStyle, fg: Paint, bg: Paint): void; 928 textStyle?: TextStyle; property
|
D | canvaskit-wasm-tests.ts | 521 textStyle: {
|
/external/skia/tools/perf-canvaskit-puppeteer/ |
D | canvas_perf.js | 602 textStyle: { property
|