Home
last modified time | relevance | path

Searched refs:textStyle (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/modules/canvaskit/
Dparagraph.js178 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']) {
186textStyle['_foregroundColorPtr'] = copyColorToWasm(textStyle['foregroundColor'], scratchForeground…
188 if (textStyle['backgroundColor']) {
189textStyle['_backgroundColorPtr'] = copyColorToWasm(textStyle['backgroundColor'], scratchBackground…
191 if (textStyle['decorationColor']) {
[all …]
Dparagraph_bindings.cpp219 SimpleTextStyle textStyle; member
236 auto ts = toTextStyle(s.textStyle); in toParagraphStyle()
526 SimpleTextStyle textStyle) { in EMSCRIPTEN_BINDINGS() argument
527 auto ts = toTextStyle(textStyle); in EMSCRIPTEN_BINDINGS()
536 SimpleTextStyle textStyle, SkPaint foreground, in EMSCRIPTEN_BINDINGS()
538 auto ts = toTextStyle(textStyle); in EMSCRIPTEN_BINDINGS()
586 .field("textStyle", &SimpleParagraphStyle::textStyle) in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/skparagraph/src/
DDecorations.cpp22 void Decorations::paint(ParagraphPainter* painter, const TextStyle& textStyle, const TextLine::Clip… in paint() argument
23 if (textStyle.getDecorationType() == TextDecoration::kNoDecoration) { in paint()
29 calculateThickness(textStyle, context.run->font().refTypeface()); in paint()
31 calculateThickness(textStyle, const_cast<RSFont&>(context.run->font()).GetTypeface()); in paint()
35 if ((textStyle.getDecorationType() & decoration) == 0) { in paint()
42 : context.run->correctAscent(), textStyle.getDecorationStyle()); in paint()
44 calculatePaint(textStyle); in paint()
50 bool drawGaps = textStyle.getDecorationMode() == TextDecorationMode::kGaps && in paint()
51 textStyle.getDecorationType() == TextDecoration::kUnderline; in paint()
53 switch (textStyle.getDecorationStyle()) { in paint()
[all …]
DDecorations.h15 …void paint(ParagraphPainter* painter, const TextStyle& textStyle, const TextLine::ClipContext& con…
20 void calculateThickness(TextStyle textStyle, sk_sp<SkTypeface> typeface);
22 void calculateThickness(TextStyle textStyle, std::shared_ptr<RSTypeface> typeface);
25 void calculatePaint(const TextStyle& textStyle);
26 void calculateWaves(const TextStyle& textStyle, SkRect clip);
DOneLineShaper.cpp431 void OneLineShaper::matchResolvedFonts(const TextStyle& textStyle, argument
434 … fParagraph->fFontCollection->findTypefaces(textStyle.getFontFamilies(), textStyle.getFontStyle(),…
437 textStyle.getFontFamilies(), textStyle.getFontStyle(), textStyle.getFontArguments());
485 FontKey fontKey(unicode, textStyle.getFontStyle(), textStyle.getLocale());
496 unicode, textStyle.getFontStyle(), textStyle.getLocale());
521 if (typeface && textStyle.getFontArguments()) {
522 … typeface = fParagraph->fFontCollection->CloneTypeface(typeface, textStyle.getFontArguments());
DParagraphImpl.cpp1359 TextStyle textStyle = paragraphStyle().getTextStyle(); in GetLineFontMetrics() local
1361 textStyle = fTextStyles.back().fStyle; in GetLineFontMetrics()
1365 textStyle.getFontFamilies(), textStyle.getFontStyle(), textStyle.getFontArguments()); in GetLineFontMetrics()
1369 SkFont font(typeface, textStyle.getFontSize()); in GetLineFontMetrics()
1371 RSFont font(typeface, textStyle.getFontSize(), 1, 0); in GetLineFontMetrics()
1376 textStyle.getHeightOverride()) { in GetLineFontMetrics()
1378 const auto strutHeight = textStyle.getHeight() * textStyle.getFontSize(); in GetLineFontMetrics()
1436 for (auto& textStyle : fTextStyles) { in GetLineFontMetrics() local
1437 textStyle.fStyle.setFontSize(fontSize); in GetLineFontMetrics()
1459 for (auto& textStyle : fTextStyles) { in GetLineFontMetrics() local
[all …]
DTextLine.cpp859 TextStyle textStyle = fOwner->paragraphStyle().getTextStyle(); in shapeEllipsis() local
863 textStyle = block.fStyle; in shapeEllipsis()
866 textStyle = block.fStyle; in shapeEllipsis()
878 SkFont font(typeface, textStyle.getFontSize()); in shapeEllipsis()
883 RSFont font(typeface, textStyle.getFontSize(), 1, 0); in shapeEllipsis()
912 textStyle.getFontFamilies(), textStyle.getFontStyle(), textStyle.getFontArguments()); in shapeEllipsis()
926 unicode, textStyle.getFontStyle(), textStyle.getLocale()); in shapeEllipsis()
928 if (textStyle.getFontArguments()) { in shapeEllipsis()
929 … typeface = fOwner->fontCollection()->CloneTypeface(typeface, textStyle.getFontArguments()); in shapeEllipsis()
DOneLineShaper.h76 void matchResolvedFonts(const TextStyle& textStyle, const TypefaceVisitor& visitor);
/third_party/skia/modules/canvaskit/tests/
Dparagraph.spec.js62 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/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp2581 TextStyle textStyle; in UNIX_ONLY_TEST() local
2582 textStyle.setFontFamilies({SkString("Roboto")}); in UNIX_ONLY_TEST()
2583 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kNormal_Weight, SkFontStyle::kNormal_Width, in UNIX_ONLY_TEST()
2585 textStyle.setFontSize(50); in UNIX_ONLY_TEST()
2586 textStyle.setLetterSpacing(1); in UNIX_ONLY_TEST()
2587 textStyle.setWordSpacing(5); in UNIX_ONLY_TEST()
2588 textStyle.setHeight(1); in UNIX_ONLY_TEST()
2589 textStyle.setColor(SK_ColorBLACK); in UNIX_ONLY_TEST()
2592 builder.pushStyle(textStyle); in UNIX_ONLY_TEST()
2645 TextStyle textStyle; in UNIX_ONLY_TEST() local
[all …]
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp987 TextStyle textStyle; in drawText() local
988 textStyle.setFontFamilies({SkString("Roboto")}); in drawText()
989 textStyle.setFontSize(30); in drawText()
990 textStyle.setLetterSpacing(letterSpace); in drawText()
991 textStyle.setColor(SK_ColorBLACK); in drawText()
992 textStyle.setFontStyle(SkFontStyle(SkFontStyle::kMedium_Weight, SkFontStyle::kNormal_Width, in drawText()
996 builder.pushStyle(textStyle); in drawText()
1057 TextStyle textStyle; in drawText() local
1058 textStyle.setFontFamilies({SkString("Roboto")}); in drawText()
1059 textStyle.setFontSize(30); in drawText()
[all …]
/third_party/skia/modules/skparagraph/include/
DParagraphStyle.h129 void setTextStyle(const TextStyle& textStyle) { fDefaultTextStyle = textStyle; } in setTextStyle()
DTextStyle.h425 Placeholder(size_t start, size_t end, const PlaceholderStyle& style, const TextStyle& textStyle, in Placeholder()
429 , fTextStyle(textStyle) in Placeholder()
/third_party/skia/site/docs/user/modules/
Dquickstart.md269 textStyle: {
299 textStyle: {
326 textStyle: {
Dcanvaskit.md359 textStyle: {
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts920 pushPaintStyle(textStyle: TextStyle, fg: Paint, bg: Paint): void;
932 textStyle?: TextStyle; property
Dcanvaskit-wasm-tests.ts526 textStyle: {
/third_party/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js602 textStyle: { property