Home
last modified time | relevance | path

Searched refs:fontStyle_ (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/
H A Dtexgine_font_style.cpp21 TexgineFontStyle::TexgineFontStyle(): fontStyle_(std::make_shared<RSFontStyle>()) in TexgineFontStyle()
26 int weight, int width, Slant slant): fontStyle_( in TexgineFontStyle()
33 fontStyle_ = style; in TexgineFontStyle()
38 return fontStyle_; in GetFontStyle()
43 fontStyle_ = fontStyle; in SetFontStyle()
48 if (fontStyle_ == nullptr) { in SetStyle()
51 *fontStyle_ = style; in SetStyle()
56 if (fontStyle_ == nullptr) { in GetWeight()
59 return fontStyle_->GetWeight(); in GetWeight()
64 if (fontStyle_ == nullptr) { in GetWidth()
[all …]
H A Dtexgine_font_style.h66 std::shared_ptr<RSFontStyle> fontStyle_ = nullptr;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.cpp24 …: fontFamilies_(fontFamilies), fontSize_(fontSize), fontWeight_(fontWeight), fontStyle_(fontStyle), in TextStyle()
35 …fontWeight_ == rhs.fontWeight_ && fontStyle_ == rhs.fontStyle_ && textBaseline_ == rhs.textBaselin… in operator ==()
100 JSON_STRING_PUT_INT(jsonValue, fontStyle_); in ToString()
H A Dpopup_param.h336 fontStyle_ = fontStyle; in SetFontStyle()
341 return fontStyle_; in GetFontStyle()
528 std::optional<FontStyle> fontStyle_; variable
H A Dtext_style.h293 return fontStyle_; in GetFontStyle()
298 fontStyle_ = fontStyle; in SetFontStyle()
787 FontStyle fontStyle_ { FontStyle::NORMAL };
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtypography_style.cpp25 .fontStyle_ = fontStyle_, in GetTextStyle()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcanvas_component.cpp226 fontStyle_.align = TEXT_ALIGNMENT_LEFT; in CanvasComponent()
227 fontStyle_.direct = TEXT_DIRECT_LTR; in CanvasComponent()
231 fontStyle_.fontName = defaultFontName; in CanvasComponent()
232 fontStyle_.letterSpace = DEFAULT_FONT_LETTERSPACE; in CanvasComponent()
251 if (fontStyle_.fontName != nullptr) { in ReleaseNativeViews()
252 ace_free(const_cast<char *>(fontStyle_.fontName)); in ReleaseNativeViews()
253 fontStyle_.fontName = nullptr; in ReleaseNativeViews()
557 component->fontStyle_.fontName = nullptr; in FontSetter()
560 component->fontStyle_.fontName = mallocSubFont; in FontSetter()
633 component->fontStyle_.align = TEXT_ALIGNMENT_LEFT; in TextAlignSetter()
[all …]
H A Dcanvas_component.h384 UICanvas::FontStyle fontStyle_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_content_modifier.cpp249 fontStyle_ = AceType::MakeRefPtr<PropertyInt>(static_cast<int32_t>(textStyle.GetFontStyle())); in SetDefaultFontStyle()
250 AttachProperty(fontStyle_); in SetDefaultFontStyle()
350 if (fontStyle_->Get() != static_cast<int32_t>(value)) { in SetFontStyle()
351 fontStyle_->Set(static_cast<int32_t>(value)); in SetFontStyle()
H A Dtext_field_content_modifier.h121 RefPtr<PropertyInt> fontStyle_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_event_hub.h157 fontStyle_ = fontStyle; in SetFontStyle()
162 return fontStyle_; in GetFontStyle()
180 OHOS::Ace::FontStyle fontStyle_; variable
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_text_style.h124 TestingFontStyle fontStyle_ = TestingFontStyle::NORMAL; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp225 rsTextStyle.fontStyle_ = static_cast<RSFontStyle>(textStyle.GetFontStyle()); in ToRSTextStyle()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_typography_test.cpp452 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontStyle_, FontStyle::NORMAL);
458 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontStyle_, FontStyle::ITALIC);
464 EXPECT_EQ(ConvertToOriginalText(txtStyle)->fontStyle_, FontStyle::NORMAL);
967 EXPECT_EQ(ConvertToOriginalText(typoStyle)->fontStyle_, FontStyle::NORMAL);
973 EXPECT_EQ(ConvertToOriginalText(typoStyle)->fontStyle_, FontStyle::ITALIC);
979 EXPECT_EQ(ConvertToOriginalText(typoStyle)->fontStyle_, FontStyle::NORMAL);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_text_typography.cpp422 ConvertToOriginalText<TextStyle>(style)->fontStyle_ = rosenFontStyle; in OH_Drawing_SetTextStyleFontStyle()