Home
last modified time | relevance | path

Searched refs:paragraphStyle (Results 1 – 18 of 18) 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/flutter/skia/tests/
DSkParagraphTest.cpp568 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST()
662 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST()
749 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST()
837 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST()
1329 ParagraphStyle paragraphStyle; in DEF_TEST() local
1330 paragraphStyle.setTextAlign(TextAlign::kLeft); in DEF_TEST()
1331 paragraphStyle.setMaxLines(10); in DEF_TEST()
1332 paragraphStyle.turnHintingOff(); in DEF_TEST()
1343 ParagraphBuilderImpl builder(paragraphStyle, fontCollection); in DEF_TEST()
1393 ParagraphStyle paragraphStyle; in DEF_TEST() local
[all …]
/third_party/flutter/skia/samplecode/
DSampleParagraph.cpp977 ParagraphStyle paragraphStyle; in drawText() local
978 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText()
979 paragraphStyle.setMaxLines(10); in drawText()
980 paragraphStyle.turnHintingOff(); in drawText()
989 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText()
1047 ParagraphStyle paragraphStyle; in drawText() local
1048 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText()
1049 paragraphStyle.setMaxLines(10); in drawText()
1050 paragraphStyle.turnHintingOff(); in drawText()
1059 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText()
[all …]
/third_party/flutter/skia/modules/skparagraph/src/
DParagraphImpl.h82 const ParagraphStyle& paragraphStyle() const { return fParagraphStyle; } in paragraphStyle() function
102 bool strutEnabled() const { return paragraphStyle().getStrutStyle().getStrutEnabled(); } in strutEnabled()
104 return paragraphStyle().getStrutStyle().getForceStrutHeight(); in strutForceHeight()
107 return paragraphStyle().getStrutStyle().getHeightOverride(); in strutHeightOverride()
DTextWrapper.cpp145 auto maxLines = parent->paragraphStyle().getMaxLines(); in breakTextIntoLines()
146 auto& ellipsisStr = parent->paragraphStyle().getEllipsis(); in breakTextIntoLines()
147 auto align = parent->paragraphStyle().getTextAlign(); in breakTextIntoLines()
DParagraphImpl.cpp150 …LineMetrics lineMetrics(font.currentFont(), paragraphStyle().getStrutStyle().getForceStrutHeight()… in layout()
373 LangIterator lang(fTextSpan, styles(), paragraphStyle().getTextStyle()); in shapeTextIntoEndlessLine()
456 auto strutStyle = this->paragraphStyle().getStrutStyle(); in resolveStrut()
602 auto paragraphTextDirection = paragraphStyle().getTextDirection(); in getRectsForRange()
653 auto strutStyle = this->paragraphStyle().getStrutStyle(); in getRectsForRange()
DParagraphCache.cpp14 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey()
DTextLine.cpp150 if (this->fMaster->paragraphStyle().getTextAlign() != TextAlign::kJustify) { in assumedTextAlign()
151 return this->fMaster->paragraphStyle().effective_align(); in assumedTextAlign()
/third_party/skia/modules/skparagraph/src/
DParagraphImpl.h143 const ParagraphStyle& paragraphStyle() const { return fParagraphStyle; }
154 bool strutEnabled() const { return paragraphStyle().getStrutStyle().getStrutEnabled(); }
156 return paragraphStyle().getStrutStyle().getForceStrutHeight();
159 return paragraphStyle().getStrutStyle().getHeightOverride();
DTextWrapper.cpp272 auto maxLines = parent->paragraphStyle().getMaxLines(); in breakTextIntoLines()
273 auto align = parent->paragraphStyle().effective_align(); in breakTextIntoLines()
276 auto hasEllipsis = parent->paragraphStyle().ellipsized(); in breakTextIntoLines()
278 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
279 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
DParagraphImpl.cpp583 auto strutStyle = this->paragraphStyle().getStrutStyle(); in resolveStrut()
612 fStrutMetrics.setForceStrut(this->paragraphStyle().getStrutStyle().getForceStrutHeight()); in resolveStrut()
898 TextStyle textStyle = paragraphStyle().getTextStyle(); in computeEmptyMetrics()
908 … fEmptyMetrics = InternalLineMetrics(font, paragraphStyle().getStrutStyle().getForceStrutHeight()); in computeEmptyMetrics()
910 if (!paragraphStyle().getStrutStyle().getForceStrutHeight() && in computeEmptyMetrics()
914 if (paragraphStyle().getStrutStyle().getHalfLeading()) { in computeEmptyMetrics()
932 …auto disableFirstAscent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisable… in computeEmptyMetrics()
933 …auto disableLastDescent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisable… in computeEmptyMetrics()
DTextLine.cpp254 } else if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl) { in format()
985 auto paragraphStyle = fOwner->paragraphStyle(); in getRectsForRange() local
1021 const auto& strutStyle = paragraphStyle.getStrutStyle(); in getRectsForRange()
1055 if (paragraphStyle.getTextAlign() == TextAlign::kJustify && isLastLine()) in getRectsForRange()
1066 } else if (paragraphStyle.getTextDirection() == TextDirection::kRtl && in getRectsForRange()
1074 } else if (paragraphStyle.getTextDirection() == TextDirection::kLtr && in getRectsForRange()
1120 boxes.emplace_back(trailingSpaces, paragraphStyle.getTextDirection()); in getRectsForRange()
DParagraphCache.cpp32 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey()
DOneLineShaper.cpp688 fParagraph->paragraphStyle().getTextStyle()); in shape()
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1644 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1738 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1825 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
1912 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in UNIX_ONLY_TEST()
2526 ParagraphStyle paragraphStyle; in UNIX_ONLY_TEST() local
2527 paragraphStyle.setTextAlign(TextAlign::kLeft); in UNIX_ONLY_TEST()
2528 paragraphStyle.setMaxLines(10); in UNIX_ONLY_TEST()
2529 paragraphStyle.turnHintingOff(); in UNIX_ONLY_TEST()
2540 ParagraphBuilderImpl builder(paragraphStyle, fontCollection); in UNIX_ONLY_TEST()
2590 ParagraphStyle paragraphStyle; in UNIX_ONLY_TEST() local
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Derror.dart25 /// [RenderErrorBox.textStyle] and [RenderErrorBox.paragraphStyle] static
46 final ui.ParagraphBuilder builder = ui.ParagraphBuilder(paragraphStyle);
97 static ui.ParagraphStyle paragraphStyle = ui.ParagraphStyle(
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dengine_canvas.dart248 final html.CssStyleDeclaration paragraphStyle = paragraphElement.style;
249 paragraphStyle
258 paragraphStyle
269 paragraphStyle
/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 …]