/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/ |
H A D | paragraph_builder_impl.cpp | 22 #include "txt/paragraph_style.h" 105 const ParagraphStyle& style, std::shared_ptr<txt::FontCollection> fontCollection) in ParagraphBuilderImpl() 181 skt::ParagraphStyle ParagraphBuilderImpl::TextStyleToSkStyle(const ParagraphStyle& txt) in TextStyleToSkStyle() argument 188 if (txt.customSpTextStyle) { in TextStyleToSkStyle() 189 textStyle = this->TextStyleToSkStyle(txt.spTextStyle); in TextStyleToSkStyle() 192 textStyle.setFontStyle(MakeFontStyle(txt.fontWeight, txt.fontWidth, txt.fontStyle)); in TextStyleToSkStyle() 193 textStyle.setFontSize(SkDoubleToScalar(txt.fontSize)); in TextStyleToSkStyle() 194 textStyle.setHeight(SkDoubleToScalar(txt in TextStyleToSkStyle() 239 TextStyleToSkStyle(const TextStyle& txt) TextStyleToSkStyle() argument 246 ConvertTextStyleToSkStyle(const TextStyle& txt) ConvertTextStyleToSkStyle() argument 298 CopyTextStylePaint(const TextStyle& txt, skia::textlayout::TextStyle& skStyle) CopyTextStylePaint() argument [all...] |
H A D | paragraph_builder_impl.h | 23 #include "txt/paragraph_builder.h" 30 ParagraphBuilderImpl(const ParagraphStyle& style, std::shared_ptr<txt::FontCollection> fontCollection); 41 static skia::textlayout::TextStyle ConvertTextStyleToSkStyle(const TextStyle& txt); 46 skia::textlayout::ParagraphStyle TextStyleToSkStyle(const ParagraphStyle& txt); 47 skia::textlayout::TextStyle TextStyleToSkStyle(const TextStyle& txt); 48 void CopyTextStylePaint(const TextStyle& txt, skia::textlayout::TextStyle& skStyle);
|
H A D | paragraph_impl.cpp | 299 TextStyle txt; in SkStyleToTextStyle() local 300 txt.color = skStyle.getColor(); in SkStyleToTextStyle() 301 txt.decoration = static_cast<TextDecoration>(skStyle.getDecorationType()); in SkStyleToTextStyle() 302 txt.decorationColor = skStyle.getDecorationColor(); in SkStyleToTextStyle() 303 txt.decorationStyle = static_cast<TextDecorationStyle>(skStyle.getDecorationStyle()); in SkStyleToTextStyle() 304 txt.decorationThicknessMultiplier = SkScalarToDouble(skStyle.getDecorationThicknessMultiplier()); in SkStyleToTextStyle() 305 txt.fontWeight = GetTxtFontWeight(skStyle.getFontStyle().GetWeight()); in SkStyleToTextStyle() 306 txt.fontStyle = GetTxtFontStyle(skStyle.getFontStyle().GetSlant()); in SkStyleToTextStyle() 308 txt.baseline = static_cast<TextBaseline>(skStyle.getTextBaseline()); in SkStyleToTextStyle() 311 txt in SkStyleToTextStyle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/font/ |
H A D | constants_converter.h | 20 #include "txt/placeholder_run.h" 21 #include "txt/text_baseline.h" 22 #include "txt/text_decoration.h" 23 #include "txt/text_style.h" 34 namespace txt { namespace 42 } // namespace txt 80 txt::FontWeight ConvertTxtFontWeight(FontWeight fontWeight); 82 txt::FontStyle ConvertTxtFontStyle(FontStyle fontStyle); 84 txt::TextBaseline ConvertTxtTextBaseline(TextBaseline textBaseline); 86 txt [all...] |
H A D | constants_converter.cpp | 19 #include "txt/font_style.h" 20 #include "txt/font_weight.h" 21 #include "txt/paragraph_style.h" 22 #include "txt/text_decoration.h" 44 txt::FontWeight ConvertTxtFontWeight(FontWeight fontWeight) in ConvertTxtFontWeight() 46 txt::FontWeight convertValue; in ConvertTxtFontWeight() 50 convertValue = txt::FontWeight::w100; in ConvertTxtFontWeight() 53 convertValue = txt::FontWeight::w200; in ConvertTxtFontWeight() 56 convertValue = txt::FontWeight::w300; in ConvertTxtFontWeight() 61 convertValue = txt in ConvertTxtFontWeight() [all...] |
H A D | rosen_font_collection.h | 24 #include "txt/font_collection.h" 38 std::shared_ptr<txt::FontCollection> GetFontCollection() override; 55 sk_sp<txt::DynamicFontManager> GetDynamicFontManager(); 69 std::shared_ptr<txt::FontCollection> fontCollection_; 71 sk_sp<txt::DynamicFontManager> dynamicFontManager_;
|
H A D | rosen_font_collection.cpp | 19 #include "txt/src/minikin/FontFamily.h" 20 #include "txt/src/minikin/FontLanguageListCache.h" 35 std::shared_ptr<txt::FontCollection> RosenFontCollection::GetFontCollection() in GetFontCollection() 52 sk_sp<txt::DynamicFontManager> RosenFontCollection::GetDynamicFontManager() in GetDynamicFontManager() 98 txt::TypefaceFontAssetProvider& font_provider = dynamicFontManager_->font_provider(); in LoadFontFromList() 143 txt::TypefaceFontAssetProvider& font_provider = dynamicFontManager_->font_provider(); in LoadThemeFont()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common_test.cpp | 153 char txt[10]; in HWTEST_F() local 155 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); in HWTEST_F() 156 EXPECT_STREQ(txt, "\\\""); in HWTEST_F() 161 char txt[10]; in HWTEST_F() local 163 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); in HWTEST_F() 164 EXPECT_STREQ(txt, "\\\\"); in HWTEST_F() 169 char txt[10]; in HWTEST_F() local 171 HdiBufEncode(txt, sizeo in HWTEST_F() 177 char txt[10]; HWTEST_F() local 185 char txt[10]; HWTEST_F() local 193 char txt[10]; HWTEST_F() local 201 char txt[10]; HWTEST_F() local 209 char txt[10]; HWTEST_F() local 217 char txt[10]; HWTEST_F() local 225 char txt[10]; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | abstract_ui.h | 40 virtual void SetInputBox(const std::string txt) in SetInputBox() argument 42 LOGI("value:%{private}s", txt.c_str()); in SetInputBox() 44 virtual std::string GetInputBox(const std::string txt) in GetInputBox() argument 46 LOGI("value:%{private}s", txt.c_str()); in GetInputBox() 50 const std::string txt, std::function<void(AlertDialog &, std::any)> &buttonEvent, std::any ctx) in SetButton() 52 LOGI("value:%{public}s", txt.c_str()); in SetButton() 49 SetButton( const std::string txt, std::function<void(AlertDialog &, std::any)> &buttonEvent, std::any ctx) SetButton() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | txt_font_collection.h | 22 #include "txt/font_collection.h" 40 explicit TxtFontCollection(const std::shared_ptr<txt::FontCollection>& fontCollection); 50 const std::shared_ptr<txt::FontCollection>& GetRawFontCollection() in GetRawFontCollection() 60 std::shared_ptr<txt::FontCollection> collection_; 61 sk_sp<txt::DynamicFontManager> dynamicFontManager_;
|
H A D | txt_paragraph.cpp | 56 txt::ParagraphStyle style; in CreateBuilder() 87 builder_ = txt::ParagraphBuilder::CreateTxtBuilder(style, fontCollection_); in CreateBuilder() 102 txt::TextStyle txtStyle; in PushStyle() 156 txt::PlaceholderRun txtSpan; in AddPlaceholder() 284 auto* paragraphTxt = static_cast<txt::ParagraphTxt*>(GetParagraph()); in GetLineCount() 301 index, next, txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); in GetCharacterWidth() 431 index, next, txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); in AdjustIndexForward() 496 prev, extent, txt in ComputeOffsetForCaretUpstream() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | rosen_render_calendar.h | 20 #include "third_party/txt/src/txt/text_style.h" 55 RSCanvas* canvas, const Offset& offset, const CalendarDay& day, txt::TextStyle& textStyle) const; 57 const txt::TextStyle& textStyle) const; 59 const CalendarDay& day, txt::TextStyle& lunarTextStyle); 60 void SetTextStyleColor(txt::TextStyle& dateTextStyle, txt::TextStyle& lunarTextStyle); 71 void SetNonFocusStyle(const CalendarDay& day, txt::TextStyle& dateTextStyle, txt::TextStyle& lunarTextStyle); 80 void InitTextStyle(txt [all...] |
H A D | rosen_render_calendar.cpp | 19 #include "txt/paragraph_builder.h" 20 #include "txt/paragraph_style.h" 41 std::unique_ptr<txt::Paragraph> GetTextParagraph(const std::string& text, const txt::TextStyle& textStyle) in GetTextParagraph() 43 txt::ParagraphStyle style; in GetTextParagraph() 55 std::unique_ptr<txt::ParagraphBuilder> builder = txt::ParagraphBuilder::CreateTxtBuilder(style, fontCollection); in GetTextParagraph() 69 const std::string& text, const txt::TextStyle& textStyle, const Rect& boxRect, Rect& textRect) in GetTextParagraph() 101 const std::string& text, const txt::TextStyle& textStyle, const Rect& boxRect) in GetTextParagraph() 296 txt in DrawWeek() [all...] |
/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_adaptor.cpp | 24 uint32_t UIFontAdaptor::GetNextLineAndWidth(const char* txt, in GetNextLineAndWidth() argument 37 return UILineBreakEngine::GetInstance().GetNextLineAndWidth(txt, fontId, fontSize, letterSpace, allBreak, maxWidth, in GetNextLineAndWidth() 41 uint32_t index = TypedText::GetNextLine(txt, fontId, fontSize, letterSpace, maxWidth); in GetNextLineAndWidth() 42 maxWidth = TypedText::GetTextWidth(txt, fontId, fontSize, index, letterSpace); in GetNextLineAndWidth()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | rosen_render_text_field.h | 23 #include "txt/paragraph_txt.h" 45 namespace txt { namespace 49 } // namespace txt 102 std::unique_ptr<txt::ParagraphStyle> CreateParagraphStyle(bool isErrorText = false); 103 std::unique_ptr<txt::TextStyle> CreateTextStyle(const TextStyle& style, bool isPlaceholder = false); 121 const std::unique_ptr<txt::ParagraphStyle>& paragraphStyle, std::unique_ptr<txt::TextStyle>& txtStyle); 135 void SetShaderIfNeeded(std::unique_ptr<txt::ParagraphStyle> paragraphStyle, 136 std::unique_ptr<txt::TextStyle> txtStyle, double textAreaWidth); 147 std::shared_ptr<txt [all...] |
H A D | rosen_render_text_field.cpp | 19 #include "txt/paragraph_builder.h" 20 #include "txt/paragraph_txt.h" 219 txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); in PaintSelectCaret() 337 txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); 381 if (box.direction == txt::TextDirection::ltr) { 395 if (box.direction == txt::TextDirection::ltr) { 726 std::unique_ptr<txt::TextStyle> txtStyle; 754 auto paragraphTxt = static_cast<txt [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_emoji_test.cpp | 85 std::string txt = "????????????"; in HWTEST_F() local 86 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 131 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); in HWTEST_F() local 132 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 187 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); in HWTEST_F() local 188 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 243 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); in HWTEST_F() local 244 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 303 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); in HWTEST_F() local 304 CreateTextField(txt, "", [](TextFieldModelN in HWTEST_F() 363 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 416 const std::string txt = "1\\n23\\n45\\r\\n6\\n78\\n9"; HWTEST_F() local 460 const std::string txt = "12345๐ก๐จโ๐ฉโ๐งโ๐ฆ๐๏ธ\\n๐จ๐ณ3๏ธโฃ๐๏ธโ๐จ๏ธ\\n67890"; HWTEST_F() local 507 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 567 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 627 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 687 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 747 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 807 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 867 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 927 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 987 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1047 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1107 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1167 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1227 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1287 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1347 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1407 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1467 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1527 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1587 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1647 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1707 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1767 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1827 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local 1887 const std::string txt = CreateEmojiStringWithLength(caseEmoji, totalNumberOfEmoji); HWTEST_F() local [all...] |
H A D | text_field_controller_test.cpp | 798 std::string txt = "????????????"; in HWTEST_F() local 799 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 842 const std::string txt = std::string("?โ?โ?โ??โ?โ?โ??โ?โ?โ??โ?โ?โ??โ?โ?โ??โ?โ?โ?") in HWTEST_F() local 844 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 886 const std::string txt = "?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ?๏ธ"; in HWTEST_F() local 887 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 930 const std::string txt = "????????????????????????"; in HWTEST_F() local 931 CreateTextField(txt, "", [](TextFieldModelNG model) { in HWTEST_F() 974 const std::string txt = "3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ3๏ธโฃ"; in HWTEST_F() local 975 CreateTextField(txt, "", [](TextFieldModelN in HWTEST_F() 1018 const std::string txt = "๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ๐๏ธโ๐จ๏ธ"; HWTEST_F() local 1053 const std::string txt = "1\\n23\\n45\\r\\n6\\n78\\n9"; HWTEST_F() local 1097 const std::string txt = "12345๐ก๐จโ๐ฉโ๐งโ๐ฆ๐๏ธ\\n๐จ๐ณ3๏ธโฃ๐๏ธโ๐จ๏ธ\\n67890"; HWTEST_F() local 1141 const std::string txt = "1234567890"; HWTEST_F() local 1174 const std::string txt = "1234567890"; HWTEST_F() local 1205 const std::string txt = "1234567890"; HWTEST_F() local 1238 const std::string txt = "1234567890"; HWTEST_F() local 1271 const std::string txt = "1234567890"; HWTEST_F() local 1302 const std::string txt = "1234567890"; HWTEST_F() local 1335 const std::string txt = "1234567890"; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common.c | 719 void HdiBufEncode(char *txt, size_t maxlen, const uint8_t *data, size_t len) in HdiBufEncode() argument 721 char *end = txt + maxlen; in HdiBufEncode() 725 if (txt + HDI_POS_FOURTH >= end) { in HdiBufEncode() 731 *txt++ = '\\'; in HdiBufEncode() 732 *txt++ = '\"'; in HdiBufEncode() 735 *txt++ = '\\'; in HdiBufEncode() 736 *txt++ = '\\'; in HdiBufEncode() 739 *txt++ = '\\'; in HdiBufEncode() 740 *txt++ = 'e'; in HdiBufEncode() 743 *txt in HdiBufEncode() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/ |
H A D | font_collection.h | 24 #include "txt/font_collection.h" 25 #include "txt/asset_font_manager.h" 34 explicit FontCollection(std::shared_ptr<txt::FontCollection> fontCollection = nullptr); 36 std::shared_ptr<txt::FontCollection> Get(); 49 std::shared_ptr<txt::FontCollection> fontCollection_ = nullptr;
|
H A D | font_collection.cpp | 32 std::shared_ptr<FontCollection> FontCollection::From(std::shared_ptr<txt::FontCollection> fontCollection) in From() 38 FontCollection::FontCollection(std::shared_ptr<txt::FontCollection> fontCollection) in FontCollection() 42 fontCollection_ = std::make_shared<txt::FontCollection>(); in FontCollection() 61 std::shared_ptr<txt::FontCollection> FontCollection::Get() in Get()
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/ |
H A D | paragraph_test.cpp | 30 namespace txt { namespace 271 SPText::TextStyle txt = paragraph_->SkStyleToTextStyle(skStyle); in HWTEST_F() local 272 EXPECT_EQ(txt.color, skStyle.getColor()); in HWTEST_F() 273 EXPECT_EQ(txt.decorationColor, skStyle.fDecoration.fColor); in HWTEST_F() 274 EXPECT_EQ(txt.decorationThicknessMultiplier, skStyle.fDecoration.fThicknessMultiplier); in HWTEST_F() 275 EXPECT_EQ(txt.fontSize, skStyle.getFontSize()); in HWTEST_F() 276 EXPECT_EQ(txt.height, skStyle.getHeight()); in HWTEST_F() 277 ASSERT_GT(txt.fontFamilies.size(), 0); in HWTEST_F() 278 EXPECT_EQ(txt.fontFamilies.back(), std::string(skStyle.fFontFamilies.back().c_str())); in HWTEST_F() 313 } // namespace txt in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | text_overlay_manager.cpp | 22 #include "txt/paragraph_txt.h" 94 txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); 154 prev, extent, txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); 165 0, extent, txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); 174 prev, extent, txt::Paragraph::RectHeightStyle::kMax, txt::Paragraph::RectWidthStyle::kTight); 200 bool isLtr = textBox.direction == txt [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/ |
H A D | font_collection.h | 26 namespace txt { namespace 28 } // namespace txt 34 static std::shared_ptr<FontCollection> From(std::shared_ptr<txt::FontCollection> fontCollection);
|
/foundation/arkui/ace_engine/frameworks/core/components/multimodal/ |
H A D | rosen_render_multimodal.cpp | 18 #include "txt/paragraph_builder.h" 19 #include "txt/paragraph_style.h" 118 txt::ParagraphStyle style; in UpdateParagraph() 133 std::unique_ptr<txt::ParagraphBuilder> builder = txt::ParagraphBuilder::CreateTxtBuilder(style, fontCollection); in UpdateParagraph() 134 txt::TextStyle txtStyle; in UpdateParagraph()
|