Home
last modified time | relevance | path

Searched refs:strutStyle (Results 1 - 6 of 6) sorted by relevance

/third_party/skia/modules/skparagraph/src/
H A DParagraphCache.cpp175 auto& strutStyle = fParagraphStyle.getStrutStyle(); in computeHash() local
176 if (strutStyle.getStrutEnabled()) { in computeHash()
177 hash = mix(hash, SkGoodHash()(relax(strutStyle.getHeight()))); in computeHash()
178 hash = mix(hash, SkGoodHash()(relax(strutStyle.getLeading()))); in computeHash()
179 hash = mix(hash, SkGoodHash()(relax(strutStyle.getFontSize()))); in computeHash()
180 hash = mix(hash, SkGoodHash()(strutStyle.getHeightOverride())); in computeHash()
181 hash = mix(hash, SkGoodHash()(strutStyle.getFontStyle())); in computeHash()
182 hash = mix(hash, SkGoodHash()(strutStyle.getForceStrutHeight())); in computeHash()
183 hash = mix(hash, SkGoodHash()(strutStyle.getHalfLeading())); in computeHash()
184 for (auto& ff : strutStyle in computeHash()
[all...]
H A DParagraphImpl.cpp1359 auto strutStyle = this->paragraphStyle().getStrutStyle(); in GetLineFontMetrics() local
1360 if (!strutStyle.getStrutEnabled() || strutStyle.getFontSize() < 0) { in GetLineFontMetrics()
1364 auto typefaces = fFontCollection->findTypefaces(strutStyle.getFontFamilies(), strutStyle.getFontStyle(), std::nullopt); in GetLineFontMetrics()
1371 SkFont font(typefaces.front(), strutStyle.getFontSize()); in GetLineFontMetrics()
1382 RSFont font(typefaces.front(), strutStyle.getFontSize(), 1, 0); in GetLineFontMetrics()
1394 if (strutStyle.getHeightOverride()) { in GetLineFontMetrics()
1396 auto strutMultiplier = strutStyle.getHeight() * strutStyle in GetLineFontMetrics()
[all...]
H A DTextLine.cpp1891 const auto& strutStyle = paragraphStyle.getStrutStyle();
1892 if (strutStyle.getStrutEnabled()
1893 && strutStyle.getFontSize() > 0) {
/third_party/skia/modules/skparagraph/include/
H A DParagraphStyle.h139 void setStrutStyle(StrutStyle strutStyle) { fStrutStyle = std::move(strutStyle); } in setStrutStyle()
/third_party/skia/modules/canvaskit/
H A Dparagraph_bindings.cpp220 SimpleStrutStyle strutStyle; member
238 auto ss = toStrutStyle(s.strutStyle); in toParagraphStyle()
587 .field("strutStyle", &SimpleParagraphStyle::strutStyle); in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/skparagraph/tests/
H A DSkParagraphTest.cpp3499 StrutStyle strutStyle; in UNIX_ONLY_TEST() local
3500 strutStyle.setStrutEnabled(true); in UNIX_ONLY_TEST()
3501 strutStyle.setFontFamilies({SkString("Roboto")}); in UNIX_ONLY_TEST()
3502 strutStyle.setFontSize(14.0); in UNIX_ONLY_TEST()
3505 paragraphStyle.setStrutStyle(strutStyle); in UNIX_ONLY_TEST()
3546 StrutStyle strutStyle; in UNIX_ONLY_TEST() local
3547 strutStyle.setStrutEnabled(false); in UNIX_ONLY_TEST()
3550 paragraphStyle.setStrutStyle(strutStyle); in UNIX_ONLY_TEST()

Completed in 20 milliseconds