Searched refs:TextHeightBehavior (Results 1 – 20 of 20) sorted by relevance
/third_party/skia/modules/canvaskit/ |
D | paragraph_bindings_gen.cpp | 96 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()
|
D | paragraph.js | 75 s['textHeightBehavior'] = s['textHeightBehavior'] || CanvasKit.TextHeightBehavior.All;
|
D | externs.js | 966 TextHeightBehavior: { property
|
D | paragraph_bindings.cpp | 218 para::TextHeightBehavior textHeightBehavior;
|
/third_party/skia/modules/skparagraph/include/ |
D | ParagraphStyle.h | 112 TextHeightBehavior getTextHeightBehavior() const { return fTextHeightBehavior; } in getTextHeightBehavior() 113 void setTextHeightBehavior(TextHeightBehavior v) { fTextHeightBehavior = v; } in setTextHeightBehavior() 134 TextHeightBehavior fTextHeightBehavior;
|
D | DartTypes.h | 133 enum TextHeightBehavior { enum
|
/third_party/flutter/txt/src/txt/ |
D | paragraph_style.h | 58 enum TextHeightBehavior { enum 75 size_t text_height_behavior = TextHeightBehavior::kAll;
|
D | paragraph_txt.cc | 1286 TextHeightBehavior::kDisableFirstAscent; in UpdateLineMetrics() 1289 TextHeightBehavior::kDisableLastDescent; in UpdateLineMetrics()
|
/third_party/skia/fuzz/ |
D | FuzzSkParagraph.cpp | 248 TextHeightBehavior thb = TextHeightBehavior::kAll; in BuildParagraphStyle()
|
/third_party/skia/modules/skparagraph/src/ |
D | ParagraphStyle.cpp | 27 fTextHeightBehavior = TextHeightBehavior::kAll; in ParagraphStyle()
|
D | ParagraphImpl.cpp | 932 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeigh… in computeEmptyMetrics() 933 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeigh… in computeEmptyMetrics()
|
D | TextWrapper.cpp | 278 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines() 279 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
|
D | TextLine.h | 119 SkScalar metricsWithoutMultiplier(TextHeightBehavior correction);
|
D | TextLine.cpp | 287 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/ |
D | index.d.ts | 502 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;
|
D | canvaskit-wasm-tests.ts | 544 textHeightBehavior: CK.TextHeightBehavior.DisableFirstAscent
|
/third_party/flutter/txt/src/skia/ |
D | paragraph_builder_skia.cc | 79 static_cast<skt::TextHeightBehavior>(txt.text_height_behavior)); in TxtToSkia()
|
/third_party/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 2719 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/ |
D | paragraph.spec.js | 869 textHeightBehavior: CanvasKit.TextHeightBehavior[behaviors[i]],
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 1357 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()
|