Home
last modified time | relevance | path

Searched refs:paragraphStyle (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/modules/canvaskit/
Dparagraph.js262 CanvasKit.ParagraphBuilder.Make = function(paragraphStyle, fontManager) { argument
263 copyArrays(paragraphStyle['textStyle']);
265 var result = CanvasKit.ParagraphBuilder._Make(paragraphStyle, fontManager);
266 freeArrays(paragraphStyle['textStyle']);
270 CanvasKit.ParagraphBuilder.MakeFromFontProvider = function(paragraphStyle, fontProvider) { argument
271 copyArrays(paragraphStyle['textStyle']);
273 … var result = CanvasKit.ParagraphBuilder._MakeFromFontProvider(paragraphStyle, fontProvider);
274 freeArrays(paragraphStyle['textStyle']);
/third_party/skia/modules/skparagraph/src/
DTextWrapper.cpp587 auto maxLines = parent->paragraphStyle().getMaxLines(); in moveForward()
588 auto align = parent->paragraphStyle().effective_align(); in moveForward()
591 auto hasEllipsis = parent->paragraphStyle().ellipsized(); in moveForward()
593 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in moveForward()
594 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in moveForward()
618 if (maxLines == 1 && parent->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD) { in moveForward()
711 if (parent->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD && hasEllipsis) { in moveForward()
719 TextAlign align = parent->paragraphStyle().effective_align(); in moveForward()
DTextLine.cpp310 this->iterateThroughVisualRuns(fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd, in prepareRoundRect()
405 } else if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl) { in format()
552 skRRect.offset(x + (fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd ? in paintRoundRect()
859 TextStyle textStyle = fOwner->paragraphStyle().getTextStyle(); in shapeEllipsis()
1075 if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kLtr) { in shapeEllipsis()
1079 result.clip.fRight = fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd ? in shapeEllipsis()
1247 bool ellipsisModeIsHead = fOwner->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD; in shapeEllipsis()
1251 if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl && in shapeEllipsis()
1258 fOwner->paragraphStyle().getTextDirection() == TextDirection::kLtr) { in shapeEllipsis()
1401 auto paragraphStyle = fOwner->paragraphStyle(); in shapeEllipsis() local
[all …]
DParagraphImpl.cpp605 this->paragraphStyle().getReplaceTabCharacters(), in GetLineFontMetrics()
938 auto disableFirstAscent = this->paragraphStyle().getTextHeightBehavior() & in GetLineFontMetrics()
940 auto disableLastDescent = this->paragraphStyle().getTextHeightBehavior() & in GetLineFontMetrics()
1003 if (addEllipsis && this->paragraphStyle().getEllipsisMod() == EllipsisModal::TAIL) { in GetLineFontMetrics()
1005 … } else if (addEllipsis && this->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD) { in GetLineFontMetrics()
1033 line.format(effectiveAlign, maxWidth, this->paragraphStyle().getEllipsisMod()); in GetLineFontMetrics()
1038 auto strutStyle = this->paragraphStyle().getStrutStyle(); in GetLineFontMetrics()
1073 fStrutMetrics.setForceStrut(this->paragraphStyle().getStrutStyle().getForceStrutHeight()); in GetLineFontMetrics()
1359 TextStyle textStyle = paragraphStyle().getTextStyle(); in GetLineFontMetrics()
1373 … fEmptyMetrics = InternalLineMetrics(font, paragraphStyle().getStrutStyle().getForceStrutHeight()); in GetLineFontMetrics()
[all …]
DParagraphImpl.h149 const ParagraphStyle& paragraphStyle() const { return fParagraphStyle; } in paragraphStyle() function
163 bool strutEnabled() const { return paragraphStyle().getStrutStyle().getStrutEnabled(); } in strutEnabled()
165 return paragraphStyle().getStrutStyle().getForceStrutHeight(); in strutForceHeight()
168 return paragraphStyle().getStrutStyle().getHeightOverride(); in strutHeightOverride()
DParagraphCache.cpp35 , fParagraphStyle(paragraph->paragraphStyle()) { in ParagraphCacheKey()
DOneLineShaper.cpp726 fParagraph->paragraphStyle().getTextStyle());
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1689 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1783 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1870 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1957 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
2577 ParagraphStyle paragraphStyle; in UNIX_ONLY_TEST() local
2578 paragraphStyle.setTextAlign(TextAlign::kLeft); in UNIX_ONLY_TEST()
2579 paragraphStyle.setMaxLines(10); in UNIX_ONLY_TEST()
2580 paragraphStyle.turnHintingOff(); in UNIX_ONLY_TEST()
2591 ParagraphBuilderImpl builder(paragraphStyle, fontCollection); in UNIX_ONLY_TEST()
2641 ParagraphStyle paragraphStyle; in UNIX_ONLY_TEST() local
[all …]
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp983 ParagraphStyle paragraphStyle; in drawText() local
984 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText()
985 paragraphStyle.setMaxLines(10); in drawText()
986 paragraphStyle.turnHintingOff(); in drawText()
995 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText()
1053 ParagraphStyle paragraphStyle; in drawText() local
1054 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText()
1055 paragraphStyle.setMaxLines(10); in drawText()
1056 paragraphStyle.turnHintingOff(); in drawText()
1065 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText()
[all …]