Home
last modified time | relevance | path

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

/external/skia/modules/canvaskit/
Dparagraph_bindings_gen.cpp97 enum_<para::TextHeightBehavior>("TextHeightBehavior") in EMSCRIPTEN_BINDINGS()
98 .value("All", para::TextHeightBehavior::kAll) in EMSCRIPTEN_BINDINGS()
99 .value("DisableFirstAscent", para::TextHeightBehavior::kDisableFirstAscent) in EMSCRIPTEN_BINDINGS()
100 .value("DisableLastDescent", para::TextHeightBehavior::kDisableLastDescent) in EMSCRIPTEN_BINDINGS()
101 .value("DisableAll", para::TextHeightBehavior::kDisableAll); in EMSCRIPTEN_BINDINGS()
Dparagraph.js95 s['textHeightBehavior'] = s['textHeightBehavior'] || CanvasKit.TextHeightBehavior.All;
Dexterns.js1091 TextHeightBehavior: { property
Dparagraph_bindings.cpp266 para::TextHeightBehavior textHeightBehavior;
/external/skia/modules/skparagraph/include/
DParagraphStyle.h113 TextHeightBehavior getTextHeightBehavior() const { return fTextHeightBehavior; } in getTextHeightBehavior()
114 void setTextHeightBehavior(TextHeightBehavior v) { fTextHeightBehavior = v; } in setTextHeightBehavior()
139 TextHeightBehavior fTextHeightBehavior;
DDartTypes.h136 enum TextHeightBehavior { enum
/external/skia/modules/skparagraph/src/
DParagraphStyle.cpp27 fTextHeightBehavior = TextHeightBehavior::kAll; in ParagraphStyle()
DParagraphImpl.cpp595 TextHeightBehavior::kDisableFirstAscent; in breakShapedTextIntoLines()
597 TextHeightBehavior::kDisableLastDescent; in breakShapedTextIntoLines()
1053 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeigh… in computeEmptyMetrics()
1054 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeigh… in computeEmptyMetrics()
DTextWrapper.cpp294 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in moveForward()
295 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in moveForward()
/external/skia/fuzz/
DFuzzSkParagraph.cpp247 TextHeightBehavior thb = TextHeightBehavior::kAll; in BuildParagraphStyle()
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts565 readonly TextHeightBehavior: TextHeightBehaviorEnumValues; property
1293 textHeightBehavior?: TextHeightBehavior;
4569 export type TextHeightBehavior = EmbindEnumEntity; alias
4843 All: TextHeightBehavior;
4844 DisableFirstAscent: TextHeightBehavior;
4845 DisableLastDescent: TextHeightBehavior;
4846 DisableAll: TextHeightBehavior;
Dcanvaskit-wasm-tests.ts593 textHeightBehavior: CK.TextHeightBehavior.DisableFirstAscent
/external/skia/modules/skparagraph/slides/
DParagraphSlide.cpp2514 auto draw = [&](SkColor color, TextHeightBehavior thb) { in draw()
2536 draw(SK_ColorLTGRAY, TextHeightBehavior::kDisableFirstAscent); in draw()
2537 draw(SK_ColorYELLOW, TextHeightBehavior::kDisableLastDescent); in draw()
2538 draw(SK_ColorGRAY, TextHeightBehavior::kDisableAll); in draw()
3489 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in draw()
3493 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kAll); in draw()
3577 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in draw()
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1527 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kAll); in UNIX_ONLY_TEST()
1751 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in UNIX_ONLY_TEST()
6426 auto draw = [&](TextHeightBehavior hb, const char* text, SkScalar height) { in UNIX_ONLY_TEST()
6447 draw(TextHeightBehavior::kAll, "Hello\nLine 2\nLine 3", 210); in UNIX_ONLY_TEST()
6448 draw(TextHeightBehavior::kDisableAll, "Hello\nLine 2\nLine 3", 157); in UNIX_ONLY_TEST()
6449 draw(TextHeightBehavior::kDisableFirstAscent, "Hello", 28); in UNIX_ONLY_TEST()
6555 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in UNIX_ONLY_TEST()
7334 auto layout = [&](TextHeightBehavior tb) { in UNIX_ONLY_TEST()
7344 auto height1 = layout(TextHeightBehavior::kDisableAll); in UNIX_ONLY_TEST()
7345 auto height2 = layout(TextHeightBehavior::kAll); in UNIX_ONLY_TEST()
/external/skia/modules/canvaskit/tests/
Dparagraph_test.js1065 textHeightBehavior: CanvasKit.TextHeightBehavior[behaviors[i]],
/external/skia/demos.skia.org/demos/mesh2d/
Dcanvaskit.js85 …||d.TextDirection.LTR;r.textHeightBehavior=r.textHeightBehavior||d.TextHeightBehavior.All;r.textSt…