Home
last modified time | relevance | path

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

/external/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.js950 TextHeightBehavior: { property
Dparagraph_bindings.cpp218 para::TextHeightBehavior textHeightBehavior;
/external/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
/external/skia/modules/skparagraph/src/
DParagraphStyle.cpp28 fTextHeightBehavior = TextHeightBehavior::kAll; in ParagraphStyle()
DTextWrapper.cpp271 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
272 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
DParagraphImpl.cpp928 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeigh… in computeEmptyMetrics()
929 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeigh… in computeEmptyMetrics()
DTextLine.h116 SkScalar metricsWithoutMultiplier(TextHeightBehavior correction);
DTextLine.cpp285 SkScalar TextLine::metricsWithoutMultiplier(TextHeightBehavior correction) { in metricsWithoutMultiplier()
299 if (correction == TextHeightBehavior::kDisableFirstAscent) { in metricsWithoutMultiplier()
303 } else if (correction == TextHeightBehavior::kDisableLastDescent) { in metricsWithoutMultiplier()
/external/skia/fuzz/
DFuzzSkParagraph.cpp246 TextHeightBehavior thb = TextHeightBehavior::kAll; in BuildParagraphStyle()
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts507 readonly TextHeightBehavior: TextHeightBehaviorEnumValues; property
927 textHeightBehavior?: TextHeightBehavior;
3761 export type TextHeightBehavior = EmbindEnumEntity; alias
4012 All: TextHeightBehavior;
4013 DisableFirstAscent: TextHeightBehavior;
4014 DisableLastDescent: TextHeightBehavior;
4015 DisableAll: TextHeightBehavior;
Dcanvaskit-wasm-tests.ts539 textHeightBehavior: CK.TextHeightBehavior.DisableFirstAscent
/external/skia/modules/skparagraph/samples/
DSampleParagraph.cpp2712 auto draw = [&](SkColor color, TextHeightBehavior thb) { in onDrawContent()
2734 draw(SK_ColorLTGRAY, TextHeightBehavior::kDisableFirstAscent); in onDrawContent()
2735 draw(SK_ColorYELLOW, TextHeightBehavior::kDisableLastDescent); in onDrawContent()
2736 draw(SK_ColorGRAY, TextHeightBehavior::kDisableAll); in onDrawContent()
/external/skia/modules/canvaskit/tests/
Dparagraph.spec.js869 textHeightBehavior: CanvasKit.TextHeightBehavior[behaviors[i]],
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1344 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kAll); in DEF_TEST()
1504 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in DEF_TEST()
5909 auto draw = [&](TextHeightBehavior hb, const char* text, SkScalar height) { in DEF_TEST()
5930 draw(TextHeightBehavior::kAll, "Hello\nLine 2\nLine 3", 210); in DEF_TEST()
5931 draw(TextHeightBehavior::kDisableAll, "Hello\nLine 2\nLine 3", 157); in DEF_TEST()
5932 draw(TextHeightBehavior::kDisableFirstAscent, "Hello", 28); in DEF_TEST()
6020 paragraph_style.setTextHeightBehavior(TextHeightBehavior::kDisableAll); in DEF_TEST()