Searched refs:TextHeightBehavior (Results 1 – 17 of 17) sorted by relevance
/external/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 | 950 TextHeightBehavior: { property
|
D | paragraph_bindings.cpp | 218 para::TextHeightBehavior textHeightBehavior;
|
/external/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
|
/external/skia/modules/skparagraph/src/ |
D | ParagraphStyle.cpp | 28 fTextHeightBehavior = TextHeightBehavior::kAll; in ParagraphStyle()
|
D | TextWrapper.cpp | 271 …auto disableFirstAscent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines() 272 …auto disableLastDescent = parent->paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::k… in breakTextIntoLines()
|
D | ParagraphImpl.cpp | 928 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeigh… in computeEmptyMetrics() 929 … (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeigh… in computeEmptyMetrics()
|
D | TextLine.h | 116 SkScalar metricsWithoutMultiplier(TextHeightBehavior correction);
|
D | TextLine.cpp | 285 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/ |
D | FuzzSkParagraph.cpp | 246 TextHeightBehavior thb = TextHeightBehavior::kAll; in BuildParagraphStyle()
|
/external/skia/modules/canvaskit/npm_build/types/ |
D | index.d.ts | 507 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;
|
D | canvaskit-wasm-tests.ts | 539 textHeightBehavior: CK.TextHeightBehavior.DisableFirstAscent
|
/external/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 2712 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/ |
D | paragraph.spec.js | 869 textHeightBehavior: CanvasKit.TextHeightBehavior[behaviors[i]],
|
/external/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 1344 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()
|