Home
last modified time | relevance | path

Searched refs:typographyStyle (Results 1 - 9 of 9) sorted by relevance

/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dtypography_test.cpp38 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 Dtypography_create_test.cpp36 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 Dtext_line_base_test.cpp45 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 Dconvert_test.cpp155 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 Dnapi_common.cpp506 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 Dnapi_common.h536 bool SetStrutStyleFromJS(napi_env env, napi_value strutStyleValue, TypographyStyle& typographyStyle);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_text_typography.cpp1656 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 Djs_paragraph_builder.cpp37 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 Dnative_node_extented.cpp528 OH_Drawing_TypographyStyle* typographyStyle = OH_Drawing_CreateTypographyStyle(); in OH_ArkUI_StyledString_Create() local
529 storage->paragraphStyle = typographyStyle; in OH_ArkUI_StyledString_Create()

Completed in 13 milliseconds