Searched refs:paragraphStyle (Results 1 – 9 of 9) sorted by relevance
/external/skia/modules/canvaskit/ |
D | paragraph.js | 251 CanvasKit.ParagraphBuilder.Make = function(paragraphStyle, fontManager) { argument 252 copyArrays(paragraphStyle['textStyle']); 254 var result = CanvasKit.ParagraphBuilder._Make(paragraphStyle, fontManager); 255 freeArrays(paragraphStyle['textStyle']); 259 CanvasKit.ParagraphBuilder.MakeFromFontProvider = function(paragraphStyle, fontProvider) { argument 260 copyArrays(paragraphStyle['textStyle']); 262 … var result = CanvasKit.ParagraphBuilder._MakeFromFontProvider(paragraphStyle, fontProvider); 263 freeArrays(paragraphStyle['textStyle']);
|
/external/skia/modules/skparagraph/src/ |
D | TextWrapper.cpp | 265 auto maxLines = parent->paragraphStyle().getMaxLines(); in breakTextIntoLines() 266 auto align = parent->paragraphStyle().effective_align(); in breakTextIntoLines() 269 auto hasEllipsis = parent->paragraphStyle().ellipsized(); in breakTextIntoLines() 271 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines() 272 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
|
D | ParagraphImpl.h | 142 const ParagraphStyle& paragraphStyle() const { return fParagraphStyle; } 153 bool strutEnabled() const { return paragraphStyle().getStrutStyle().getStrutEnabled(); } 155 return paragraphStyle().getStrutStyle().getForceStrutHeight(); 158 return paragraphStyle().getStrutStyle().getHeightOverride();
|
D | ParagraphImpl.cpp | 582 auto strutStyle = this->paragraphStyle().getStrutStyle(); in resolveStrut() 611 fStrutMetrics.setForceStrut(this->paragraphStyle().getStrutStyle().getForceStrutHeight()); in resolveStrut() 894 TextStyle textStyle = paragraphStyle().getTextStyle(); in computeEmptyMetrics() 904 … fEmptyMetrics = InternalLineMetrics(font, paragraphStyle().getStrutStyle().getForceStrutHeight()); in computeEmptyMetrics() 906 if (!paragraphStyle().getStrutStyle().getForceStrutHeight() && in computeEmptyMetrics() 910 if (paragraphStyle().getStrutStyle().getHalfLeading()) { in computeEmptyMetrics() 928 …auto disableFirstAscent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisable… in computeEmptyMetrics() 929 …auto disableLastDescent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisable… in computeEmptyMetrics()
|
D | TextLine.cpp | 252 } else if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl) { in format() 975 auto paragraphStyle = fOwner->paragraphStyle(); in getRectsForRange() local 1011 const auto& strutStyle = paragraphStyle.getStrutStyle(); in getRectsForRange() 1045 if (paragraphStyle.getTextAlign() == TextAlign::kJustify && isLastLine()) in getRectsForRange() 1056 } else if (paragraphStyle.getTextDirection() == TextDirection::kRtl && in getRectsForRange() 1064 } else if (paragraphStyle.getTextDirection() == TextDirection::kLtr && in getRectsForRange() 1110 boxes.emplace_back(trailingSpaces, paragraphStyle.getTextDirection()); in getRectsForRange()
|
D | ParagraphCache.cpp | 32 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey()
|
D | OneLineShaper.cpp | 679 fParagraph->paragraphStyle().getTextStyle()); in shape()
|
/external/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 1631 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST() 1725 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST() 1812 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST() 1899 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign()); in DEF_TEST() 2513 ParagraphStyle paragraphStyle; in DEF_TEST() local 2514 paragraphStyle.setTextAlign(TextAlign::kLeft); in DEF_TEST() 2515 paragraphStyle.setMaxLines(10); in DEF_TEST() 2516 paragraphStyle.turnHintingOff(); in DEF_TEST() 2527 ParagraphBuilderImpl builder(paragraphStyle, fontCollection); in DEF_TEST() 2577 ParagraphStyle paragraphStyle; in DEF_TEST() local [all …]
|
/external/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 984 ParagraphStyle paragraphStyle; in drawText() local 985 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText() 986 paragraphStyle.setMaxLines(10); in drawText() 987 paragraphStyle.turnHintingOff(); in drawText() 996 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText() 1054 ParagraphStyle paragraphStyle; in drawText() local 1055 paragraphStyle.setTextAlign(TextAlign::kLeft); in drawText() 1056 paragraphStyle.setMaxLines(10); in drawText() 1057 paragraphStyle.turnHintingOff(); in drawText() 1066 ParagraphBuilderImpl builder(paragraphStyle, getFontCollection()); in drawText() [all …]
|