Home
last modified time | relevance | path

Searched refs:FontSpan (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_string_test_ng.cpp508 … AceType::MakeRefPtr<FontSpan>(fontTwo, 3, 7), AceType::MakeRefPtr<FontSpan>(fontOne, 7, 10) };
518 … AceType::MakeRefPtr<FontSpan>(fontTwo, 5, 7), AceType::MakeRefPtr<FontSpan>(fontOne, 7, 10) };
642 … AceType::MakeRefPtr<FontSpan>(fonts[1], 6, 7), AceType::MakeRefPtr<FontSpan>(fonts[2], 7, 8),
663 … AceType::MakeRefPtr<FontSpan>(fonts[2], 1, 2), AceType::MakeRefPtr<FontSpan>(fonts[3], 2, 3),
694 … AceType::MakeRefPtr<FontSpan>(fonts[4], 1, 4), AceType::MakeRefPtr<FontSpan>(fonts[1], 4, 5),
701 … AceType::MakeRefPtr<FontSpan>(fonts[0], 3, 4), AceType::MakeRefPtr<FontSpan>(fonts[4], 4, 7),
702 … AceType::MakeRefPtr<FontSpan>(fonts[1], 7, 8), AceType::MakeRefPtr<FontSpan>(fonts[2], 8, 9),
709 … AceType::MakeRefPtr<FontSpan>(fonts[1], 3, 4), AceType::MakeRefPtr<FontSpan>(fonts[2], 4, 5),
716 … AceType::MakeRefPtr<FontSpan>(fonts[1], 3, 4), AceType::MakeRefPtr<FontSpan>(fonts[2], 4, 5),
1321 RefPtr<FontSpan> fontSpan = AceType::MakeRefPtr<FontSpan>(testFont1, 0, 10);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/adapter/ohos/capability/
H A Dhtml_convert_test.cpp140 spanString3->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont1, 0, 3));
141 spanString3->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont2, 3, 5));
142 spanString3->AddSpan(AceType::MakeRefPtr<FontSpan>(testEmptyFont, 5, 8));
170 spanString2->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont1, 0, 5));
171 spanString2->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont2, 6, 10));
187 spanString->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont1, 0, 3));
188 spanString->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont2, 3, 5));
189 spanString->AddSpan(AceType::MakeRefPtr<FontSpan>(testEmptyFont, 5, 8));
290 spanString->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont1, 0, 3));
291 spanString->AddSpan(AceType::MakeRefPtr<FontSpan>(testFont2, 3, 5));
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp66 FontSpan::FontSpan(Font font) : SpanBase(0, 0), font_(std::move(font)) {} in FontSpan() function in OHOS::Ace::FontSpan
68 FontSpan::FontSpan(Font font, int32_t start, int32_t end) : SpanBase(start, end), font_(std::move(f… in FontSpan() function in OHOS::Ace::FontSpan
81 RefPtr<SpanBase> FontSpan::GetSubSpan(int32_t start, int32_t end) in GetSubSpan()
83 RefPtr<SpanBase> spanBase = MakeRefPtr<FontSpan>(font_, start, end); in GetSubSpan()
87 void FontSpan::AddSpanStyle(const RefPtr<NG::SpanItem>& spanItem) const in AddSpanStyle()
110 void FontSpan::RemoveSpanStyle(const RefPtr<NG::SpanItem>& spanItem) in RemoveSpanStyle()
119 Font FontSpan::GetFont() const in GetFont()
124 SpanType FontSpan::GetSpanType() const in GetSpanType()
129 std::string FontSpan::ToString() const in ToString()
141 bool FontSpan::IsAttributesEqual(const RefPtr<SpanBase>& other) const in IsAttributesEqual()
[all …]
H A Dspan_object.h120 class FontSpan : public SpanBase {
121 DECLARE_ACE_TYPE(FontSpan, SpanBase);
124 FontSpan() = default;
125 explicit FontSpan(Font font);
126 FontSpan(Font font, int32_t start, int32_t end);
H A Dspan_string.h84 RefPtr<FontSpan> ToFontSpan(const RefPtr<NG::SpanItem>& spanItem, int32_t start, int32_t end);
H A Dspan_string.cpp519 return MakeRefPtr<FontSpan>(); in GetDefaultSpan()
1059 RefPtr<FontSpan> SpanString::ToFontSpan(const RefPtr<NG::SpanItem>& spanItem, int32_t start, int32_… in ToFontSpan()
1068 return AceType::MakeRefPtr<FontSpan>(font, start, end); in ToFontSpan()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.h41 static RefPtr<FontSpan> ParseJsFontSpan(const JSRef<JSObject>& obj);
58 const RefPtr<FontSpan>& GetFontSpan();
59 void SetFontSpan(const RefPtr<FontSpan>& fontSpan);
63 RefPtr<FontSpan> fontSpan_;
H A Djs_span_object.cpp89 RefPtr<FontSpan> span; in Constructor()
92 span = AceType::MakeRefPtr<FontSpan>(font); in Constructor()
110 RefPtr<FontSpan> JSFontSpan::ParseJsFontSpan(const JSRef<JSObject>& obj) in ParseJsFontSpan()
118 return AceType::MakeRefPtr<FontSpan>(font); in ParseJsFontSpan()
274 const RefPtr<FontSpan>& JSFontSpan::GetFontSpan() in GetFontSpan()
279 void JSFontSpan::SetFontSpan(const RefPtr<FontSpan>& fontSpan) in SetFontSpan()
H A Djs_span_string.cpp332 auto span = AceType::DynamicCast<FontSpan>(spanObject); in CreateJsFontSpan()
467 … return AceType::MakeRefPtr<FontSpan>(fontSpan->GetFontSpan()->GetFont(), start, start + length); in ParseJsFontSpan()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_content_modifier_test_ng.cpp92 styledString->AddSpan(AceType::MakeRefPtr<FontSpan>(TEST_FONT, 0, length)); in CreateTextStyledString()
H A Drich_editor_styled_string_test_ng.cpp88 styledString->AddSpan(AceType::MakeRefPtr<FontSpan>(TEST_FONT, 0, length)); in CreateTextStyledString()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dhtml_to_span.cpp1014 return MakeSpan<Font, FontSpan>(info, value); in CreateSpan()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.h360 RefPtr<FontSpan> CreateFontSpanByTextStyle(
H A Drich_editor_pattern.cpp343 RefPtr<FontSpan> RichEditorPattern::CreateFontSpanByTextStyle( in CreateFontSpanByTextStyle()
362 return AceType::MakeRefPtr<FontSpan>(font, 0, length); in CreateFontSpanByTextStyle()