Home
last modified time | relevance | path

Searched refs:strutStyle (Results 1 – 11 of 11) sorted by relevance

/external/skia/modules/skparagraph/src/
DParagraphCache.cpp111 auto& strutStyle = key.fParagraphStyle.getStrutStyle(); in operator ()() local
112 if (strutStyle.getStrutEnabled()) { in operator ()()
113 hash = mix(hash, SkGoodHash()(relax(strutStyle.getHeight()))); in operator ()()
114 hash = mix(hash, SkGoodHash()(relax(strutStyle.getLeading()))); in operator ()()
115 hash = mix(hash, SkGoodHash()(relax(strutStyle.getFontSize()))); in operator ()()
116 hash = mix(hash, SkGoodHash()(strutStyle.getHeightOverride())); in operator ()()
117 hash = mix(hash, SkGoodHash()(strutStyle.getFontStyle())); in operator ()()
118 hash = mix(hash, SkGoodHash()(strutStyle.getForceStrutHeight())); in operator ()()
119 for (auto& ff : strutStyle.getFontFamilies()) { in operator ()()
DParagraphImpl.cpp582 auto strutStyle = this->paragraphStyle().getStrutStyle(); in resolveStrut() local
583 if (!strutStyle.getStrutEnabled() || strutStyle.getFontSize() < 0) { in resolveStrut()
587 …SkTypeface>> typefaces = fFontCollection->findTypefaces(strutStyle.getFontFamilies(), strutStyle.g… in resolveStrut()
593 SkFont font(typefaces.front(), strutStyle.getFontSize()); in resolveStrut()
597 if (strutStyle.getHeightOverride()) { in resolveStrut()
599 auto strutMultiplier = strutStyle.getHeight() * strutStyle.getFontSize(); in resolveStrut()
603strutStyle.getLeading() < 0 ? 0 : strutStyle.getLeading() * strutStyle.getFontSize()); in resolveStrut()
608 strutStyle.getLeading() < 0 ? 0 in resolveStrut()
609 : strutStyle.getLeading() * strutStyle.getFontSize()); in resolveStrut()
DTextLine.cpp1011 const auto& strutStyle = paragraphStyle.getStrutStyle(); in getRectsForRange() local
1012 if (strutStyle.getStrutEnabled() in getRectsForRange()
1013 && strutStyle.getFontSize() > 0) { in getRectsForRange()
/external/skia/modules/skparagraph/include/
DParagraphStyle.h90 void setStrutStyle(StrutStyle strutStyle) { fStrutStyle = std::move(strutStyle); } in setStrutStyle()
/external/skia/modules/canvaskit/
Dparagraph.js72 s['strutStyle'] = strutStyle(s['strutStyle']);
91 function strutStyle(s) { function
Dparagraph_bindings.cpp220 SimpleStrutStyle strutStyle; member
238 auto ss = toStrutStyle(s.strutStyle); in toParagraphStyle()
594 .field("strutStyle", &SimpleParagraphStyle::strutStyle); in EMSCRIPTEN_BINDINGS()
DCHANGELOG.md286 - Added `strutStyle` to `ParagraphStyle`.
/external/skia/modules/canvaskit/tests/
Dparagraph.spec.js285 strutStyle: { property
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp3435 StrutStyle strutStyle; in DEF_TEST() local
3436 strutStyle.setStrutEnabled(true); in DEF_TEST()
3437 strutStyle.setFontFamilies({SkString("Roboto")}); in DEF_TEST()
3438 strutStyle.setFontSize(14.0); in DEF_TEST()
3441 paragraphStyle.setStrutStyle(strutStyle); in DEF_TEST()
3482 StrutStyle strutStyle; in DEF_TEST() local
3483 strutStyle.setStrutEnabled(false); in DEF_TEST()
3486 paragraphStyle.setStrutStyle(strutStyle); in DEF_TEST()
/external/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts529 strutStyle: {
Dindex.d.ts924 strutStyle?: StrutStyle; property