/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | typography_test.cpp | 38 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 41 typographyStyle, fontCollection); in HWTEST_F() 53 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 56 typographyStyle, fontCollection); in HWTEST_F() 69 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 72 typographyStyle, fontCollection); in HWTEST_F() 85 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 88 typographyStyle, fontCollection); in HWTEST_F() 100 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 103 typographyStyle, fontCollectio in HWTEST_F() 124 OHOS::Rosen::TypographyStyle typographyStyle; HWTEST_F() local 160 OHOS::Rosen::TypographyStyle typographyStyle; HWTEST_F() local 196 OHOS::Rosen::TypographyStyle typographyStyle; HWTEST_F() local [all...] |
H A D | typography_create_test.cpp | 36 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 40 typographyStyle, fontCollection); in HWTEST_F() 51 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 54 typographyStyle, fontCollection); in HWTEST_F() 78 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 82 typographyStyle, fontCollection); in HWTEST_F() 100 OHOS::Rosen::TypographyStyle typographyStyle; in HWTEST_F() local 104 typographyStyle, fontCollection); in HWTEST_F()
|
H A D | text_line_base_test.cpp | 45 TypographyStyle typographyStyle; in SetUp() local 46 typographyStyle.maxLines = maxLines_; in SetUp() 50 std::shared_ptr<TypographyCreate> typographyCreate = TypographyCreate::Create(typographyStyle, fontCollection); in SetUp()
|
H A D | convert_test.cpp | 155 TypographyStyle typographyStyle; in HWTEST_F() local 156 SPText::ParagraphStyle paragraphStyle = AdapterTxt::Convert(typographyStyle); in HWTEST_F() 157 EXPECT_EQ(paragraphStyle.fontSize, typographyStyle.fontSize); in HWTEST_F()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/ |
H A D | napi_common.cpp | 506 bool SetStrutStyleFromJS(napi_env env, napi_value strutStyleValue, TypographyStyle& typographyStyle)
519 typographyStyle.lineStyleFontFamilies = fontFamilies;
523 SetEnumValueFromJS(env, strutStyleValue, "fontStyle", typographyStyle.lineStyleFontStyle);
524 SetEnumValueFromJS(env, strutStyleValue, "fontWidth", typographyStyle.lineStyleFontWidth);
525 SetEnumValueFromJS(env, strutStyleValue, "fontWeight", typographyStyle.lineStyleFontWeight);
527 SetDoubleValueFromJS(env, strutStyleValue, "fontSize", typographyStyle.lineStyleFontSize);
528 SetDoubleValueFromJS(env, strutStyleValue, "height", typographyStyle.lineStyleHeightScale);
529 SetDoubleValueFromJS(env, strutStyleValue, "leading", typographyStyle.lineStyleSpacingScale);
531 SetBoolValueFromJS(env, strutStyleValue, "forceHeight", typographyStyle.lineStyleOnly);
532 SetBoolValueFromJS(env, strutStyleValue, "enabled", typographyStyle [all...] |
H A D | napi_common.h | 536 bool SetStrutStyleFromJS(napi_env env, napi_value strutStyleValue, TypographyStyle& typographyStyle);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_typography.cpp | 1656 TypographyStyle* typographyStyle = ConvertToOriginalText<TypographyStyle>(style); in OH_Drawing_SetTypographyTextLineStyleFontHeight() local 1657 if (typographyStyle == nullptr) { in OH_Drawing_SetTypographyTextLineStyleFontHeight() 1660 typographyStyle->lineStyleHeightScale = lineStyleFontHeight; in OH_Drawing_SetTypographyTextLineStyleFontHeight() 1661 if (!typographyStyle->lineStyleHeightOnlyInit) { in OH_Drawing_SetTypographyTextLineStyleFontHeight() 1662 typographyStyle->lineStyleHeightOnly = true; in OH_Drawing_SetTypographyTextLineStyleFontHeight() 3047 TypographyStyle* typographyStyle = ConvertToOriginalText<TypographyStyle>(style); in OH_Drawing_TypographyStyleGetEffectiveAlignment() local 3048 if (typographyStyle == nullptr) { in OH_Drawing_TypographyStyleGetEffectiveAlignment() 3051 return static_cast<OH_Drawing_TextAlign>(typographyStyle->GetEffectiveAlign()); in OH_Drawing_TypographyStyleGetEffectiveAlignment() 3056 TypographyStyle* typographyStyle = ConvertToOriginalText<TypographyStyle>(style); in OH_Drawing_TypographyStyleIsHintEnabled() local 3057 if (typographyStyle in OH_Drawing_TypographyStyleIsHintEnabled() 3101 TypographyStyle* typographyStyle = ConvertToOriginalText<TypographyStyle>(style); OH_Drawing_TypographyStyleGetStrutStyle() local 3171 TypographyStyle* typographyStyle = ConvertToOriginalText<TypographyStyle>(style); OH_Drawing_TypographyStyleSetHintsEnabled() local [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/paragraph_builder_napi/ |
H A D | js_paragraph_builder.cpp | 37 TypographyStyle typographyStyle; in Constructor() local 38 GetParagraphStyleFromJS(env, argv[0], typographyStyle); in Constructor() 50 std::unique_ptr<TypographyCreate> typographyCreate = TypographyCreate::Create(typographyStyle, fontCollection); in Constructor()
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | native_node_extented.cpp | 528 OH_Drawing_TypographyStyle* typographyStyle = OH_Drawing_CreateTypographyStyle(); in OH_ArkUI_StyledString_Create() local 529 storage->paragraphStyle = typographyStyle; in OH_ArkUI_StyledString_Create()
|