Home
last modified time | relevance | path

Searched refs:TextHeightBehavior (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/modules/canvaskit/
Dparagraph_bindings_gen.cpp96 enum_<para::TextHeightBehavior>("TextHeightBehavior") in EMSCRIPTEN_BINDINGS()
97 .value("All", para::TextHeightBehavior::kAll) in EMSCRIPTEN_BINDINGS()
98 .value("DisableFirstAscent", para::TextHeightBehavior::kDisableFirstAscent) in EMSCRIPTEN_BINDINGS()
99 .value("DisableLastDescent", para::TextHeightBehavior::kDisableLastDescent) in EMSCRIPTEN_BINDINGS()
100 .value("DisableAll", para::TextHeightBehavior::kDisableAll); in EMSCRIPTEN_BINDINGS()
Dparagraph.js75 s['textHeightBehavior'] = s['textHeightBehavior'] || CanvasKit.TextHeightBehavior.All;
Dexterns.js966 TextHeightBehavior: { property
Dparagraph_bindings.cpp218 para::TextHeightBehavior textHeightBehavior;
/third_party/skia/modules/skparagraph/include/
DParagraphStyle.h112 TextHeightBehavior getTextHeightBehavior() const { return fTextHeightBehavior; } in getTextHeightBehavior()
113 void setTextHeightBehavior(TextHeightBehavior v) { fTextHeightBehavior = v; } in setTextHeightBehavior()
134 TextHeightBehavior fTextHeightBehavior;
DDartTypes.h133 enum TextHeightBehavior { enum
/third_party/flutter/txt/src/txt/
Dparagraph_style.h58 enum TextHeightBehavior { enum
75 size_t text_height_behavior = TextHeightBehavior::kAll;
Dparagraph_txt.cc1286 TextHeightBehavior::kDisableFirstAscent; in UpdateLineMetrics()
1289 TextHeightBehavior::kDisableLastDescent; in UpdateLineMetrics()
/third_party/skia/fuzz/
DFuzzSkParagraph.cpp248 TextHeightBehavior thb = TextHeightBehavior::kAll; in BuildParagraphStyle()
/third_party/skia/modules/skparagraph/src/
DParagraphStyle.cpp27 fTextHeightBehavior = TextHeightBehavior::kAll; in ParagraphStyle()
DParagraphImpl.cpp932 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeigh… in computeEmptyMetrics()
933 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeigh… in computeEmptyMetrics()
DTextWrapper.cpp278 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
279 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
DTextLine.h119 SkScalar metricsWithoutMultiplier(TextHeightBehavior correction);
DTextLine.cpp287 SkScalar TextLine::metricsWithoutMultiplier(TextHeightBehavior correction) { in metricsWithoutMultiplier()
301 if (correction == TextHeightBehavior::kDisableFirstAscent) { in metricsWithoutMultiplier()
305 } else if (correction == TextHeightBehavior::kDisableLastDescent) { in metricsWithoutMultiplier()
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts502 readonly TextHeightBehavior: TextHeightBehaviorEnumValues; property
931 textHeightBehavior?: TextHeightBehavior;
3829 export type TextHeightBehavior = EmbindEnumEntity; alias
4073 All: TextHeightBehavior;
4074 DisableFirstAscent: TextHeightBehavior;
4075 DisableLastDescent: TextHeightBehavior;
4076 DisableAll: TextHeightBehavior;
Dcanvaskit-wasm-tests.ts544 textHeightBehavior: CK.TextHeightBehavior.DisableFirstAscent
/third_party/flutter/txt/src/skia/
Dparagraph_builder_skia.cc79 static_cast<skt::TextHeightBehavior>(txt.text_height_behavior)); in TxtToSkia()
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp2719 auto draw = [&](SkColor color, TextHeightBehavior thb) { in onDrawContent()
2741 draw(SK_ColorLTGRAY, TextHeightBehavior::kDisableFirstAscent); in onDrawContent()
2742 draw(SK_ColorYELLOW, TextHeightBehavior::kDisableLastDescent); in onDrawContent()
2743 draw(SK_ColorGRAY, TextHeightBehavior::kDisableAll); in onDrawContent()
/third_party/skia/modules/canvaskit/tests/
Dparagraph.spec.js869 textHeightBehavior: CanvasKit.TextHeightBehavior[behaviors[i]],
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1357 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kAll); in UNIX_ONLY_TEST()
1517 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in UNIX_ONLY_TEST()
5922 auto draw = [&](TextHeightBehavior hb, const char* text, SkScalar height) { in UNIX_ONLY_TEST()
5943 draw(TextHeightBehavior::kAll, "Hello\nLine 2\nLine 3", 210); in UNIX_ONLY_TEST()
5944 draw(TextHeightBehavior::kDisableAll, "Hello\nLine 2\nLine 3", 157); in UNIX_ONLY_TEST()
5945 draw(TextHeightBehavior::kDisableFirstAscent, "Hello", 28); in UNIX_ONLY_TEST()
6051 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in UNIX_ONLY_TEST()