Home
last modified time | relevance | path

Searched refs:fontCollection (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_font_collection.cpp87 void OH_Drawing_DestroyFontCollection(OH_Drawing_FontCollection* fontCollection) in OH_Drawing_DestroyFontCollection() argument
89 if (!fontCollection) { in OH_Drawing_DestroyFontCollection()
93 if (FontCollectionMgr::GetInstance().Remove(fontCollection)) { in OH_Drawing_DestroyFontCollection()
96 if (!g_objectMgr->RemoveObject(fontCollection)) { in OH_Drawing_DestroyFontCollection()
101 delete ConvertToFontCollection<rosen::FontCollection>(fontCollection); in OH_Drawing_DestroyFontCollection()
113 if (!fontCollection) { in OH_Drawing_DisableFontCollectionFallback()
121 if (fontCollection == nullptr) { in OH_Drawing_DisableFontCollectionSystemFont()
135 void OH_Drawing_ClearFontCaches(OH_Drawing_FontCollection* fontCollection) in OH_Drawing_ClearFontCaches() argument
137 if (!fontCollection) { in OH_Drawing_ClearFontCaches()
141 if (FontCollectionMgr::GetInstance().Find(fontCollection)) { in OH_Drawing_ClearFontCaches()
[all …]
H A Ddrawing_register_font.cpp67 static uint32_t LoadFromFontCollection(OH_Drawing_FontCollection* fontCollection, in LoadFromFontCollection() argument
70 if (fontCollection == nullptr) { in LoadFromFontCollection()
76 auto fc = ConvertToOriginalText<FontCollection>(fontCollection); in LoadFromFontCollection()
140 OH_Drawing_FontCollection* fontCollection, const char* fontFamily, const char* familySrc) in OH_Drawing_RegisterFont() argument
142 if (fontCollection == nullptr || familySrc == nullptr) { in OH_Drawing_RegisterFont()
154 return LoadFromFontCollection(fontCollection, familyName, data, size); in OH_Drawing_RegisterFont()
157 uint32_t OH_Drawing_RegisterFontBuffer(OH_Drawing_FontCollection* fontCollection, const char* fontF… in OH_Drawing_RegisterFontBuffer() argument
160 if (fontCollection == nullptr) { in OH_Drawing_RegisterFontBuffer()
172 return LoadFromFontCollection(fontCollection, familyName, fontBuffer, length); in OH_Drawing_RegisterFontBuffer()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dfont_collection_test.cpp35 fontCollection->DisableFallback();
36 fontCollection->DisableSystemFont();
38 auto typeface = fontCollection->LoadFont("familyname", data, 0);
40 typeface = fontCollection->LoadThemeFont("familynametest", data, 0);
53 auto fontCollection = OHOS::Rosen::FontCollection::From(nullptr); variable
58 EXPECT_EQ(fontCollection->RegisterTypeface(typeface), false);
62 EXPECT_EQ(fontCollection->RegisterTypeface(nullptr), false);
63 EXPECT_EQ(fontCollection->RegisterTypeface(typeface), true);
64 EXPECT_EQ(fontCollection->RegisterTypeface(typeface), true);
74 auto fontCollection = OHOS::Rosen::FontCollection::From(nullptr); variable
[all …]
H A Dtypography_test.cpp39 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
41 typographyStyle, fontCollection);
54 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
56 typographyStyle, fontCollection);
70 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
72 typographyStyle, fontCollection);
86 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
88 typographyStyle, fontCollection);
103 typographyStyle, fontCollection);
127 typographyStyle, fontCollection);
[all …]
H A Dtypography_create_test.cpp37 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
38 EXPECT_NE(fontCollection, nullptr);
40 typographyStyle, fontCollection);
52 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
54 typographyStyle, fontCollection);
H A Dtext_line_base_test.cpp39 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
41 typographyStyle, fontCollection);
H A Drun_test.cpp40 …std::shared_ptr<OHOS::Rosen::FontCollection> fontCollection = OHOS::Rosen::FontCollection::Create(… variable
42 typographyStyle, fontCollection);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_font_collection_test.cpp35 OH_Drawing_FontCollection* fontCollection = OH_Drawing_CreateFontCollection(); variable
38 EXPECT_NE(fontCollection, nullptr);
41 OH_Drawing_DisableFontCollectionFallback(fontCollection);
43 OH_Drawing_DisableFontCollectionSystemFont(fontCollection);
45 OH_Drawing_ClearFontCaches(fontCollection);
47 OH_Drawing_DestroyFontCollection(fontCollection);
H A Ddrawing_register_font_test.cpp40 OH_Drawing_FontCollection* fontCollection = OH_Drawing_CreateFontCollection(); variable
41 uint32_t errorCode = OH_Drawing_RegisterFont(fontCollection, g_fontFamily, g_fontPath);
49 OH_Drawing_DestroyFontCollection(fontCollection);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dparagraph_builder_test.cpp37 std::shared_ptr<FontCollection> fontCollection = std::make_shared<FontCollection>(); in SetUpTestCase() local
38 if (!fontCollection) { in SetUpTestCase()
42 paragraphBuilder_ = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUpTestCase()
122 std::shared_ptr<FontCollection> fontCollection = std::make_shared<FontCollection>(); variable
125 EXPECT_EQ(ParagraphBuilder::Create(paragraphStyle, fontCollection) != nullptr, true);
127 EXPECT_EQ(ParagraphBuilder::Create(paragraphStyle, fontCollection) != nullptr, true);
129 auto builder = ParagraphBuilder::Create(paragraphStyle, fontCollection);
H A Dtext_line_base_test.cpp41 std::shared_ptr<FontCollection> fontCollection = std::make_shared<FontCollection>(); in SetUpTestCase() local
42 if (!fontCollection) { in SetUpTestCase()
46 fontCollection->SetupDefaultFontManager(); in SetUpTestCase()
47 …_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUpTestCase()
H A Drun_test.cpp41 std::shared_ptr<FontCollection> fontCollection = std::make_shared<FontCollection>(); in SetUpTestCase() local
42 if (!fontCollection) { in SetUpTestCase()
46 fontCollection->SetupDefaultFontManager(); in SetUpTestCase()
47 …_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUpTestCase()
H A Dparagraph_test.cpp50 std::shared_ptr<FontCollection> fontCollection = std::make_shared<FontCollection>(); in SetUp() local
51 ASSERT_NE(fontCollection, nullptr); in SetUp()
52 fontCollection->SetupDefaultFontManager(); in SetUp()
53 …_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUp()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dtxt_font_collection.cpp63 TxtFontCollection::TxtFontCollection(const std::shared_ptr<txt::FontCollection>& fontCollection) in TxtFontCollection() argument
64 : collection_(fontCollection) in TxtFontCollection()
67 TxtFontCollection::TxtFontCollection(const std::shared_ptr<Rosen::FontCollection>& fontCollection) in TxtFontCollection() argument
68 : collection_(fontCollection) in TxtFontCollection()
H A Dtxt_font_collection.h40 explicit TxtFontCollection(const std::shared_ptr<txt::FontCollection>& fontCollection);
42 explicit TxtFontCollection(const std::shared_ptr<RSFontCollection>& fontCollection);
H A Dtxt_paragraph.h40 … TxtParagraph(const ParagraphStyle& paraStyle, std::shared_ptr<txt::FontCollection> fontCollection) in DECLARE_ACE_TYPE()
41 : paraStyle_(paraStyle), fontCollection_(std::move(fontCollection)) in DECLARE_ACE_TYPE()
50 TxtParagraph(const ParagraphStyle& paraStyle, std::shared_ptr<RSFontCollection> fontCollection)
51 : paraStyle_(paraStyle), fontCollection_(std::move(fontCollection))
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Drosen_font_collection.cpp63 … auto fontCollection = AceType::DynamicCast<NG::TxtFontCollection>(NG::FontCollection::Current()); in GetFontCollection() local
64 fontCollection_ = fontCollection->GetRawFontCollection(); in GetFontCollection()
82 … auto fontCollection = AceType::DynamicCast<NG::TxtFontCollection>(NG::FontCollection::Current()); in LoadFontFromList()
83 fontCollection_ = fontCollection->GetRawFontCollection(); in LoadFontFromList()
126 … auto fontCollection = AceType::DynamicCast<NG::TxtFontCollection>(NG::FontCollection::Current()); in InitializeFontCollection()
127 fontCollection_ = fontCollection->GetRawFontCollection(); in InitializeFontCollection()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dfont_collection.cpp32 …hared_ptr<FontCollection> FontCollection::From(std::shared_ptr<txt::FontCollection> fontCollection) in From() argument
34 return std::make_shared<AdapterTxt::FontCollection>(fontCollection); in From()
38 FontCollection::FontCollection(std::shared_ptr<txt::FontCollection> fontCollection) in FontCollection() argument
39 : fontCollection_(fontCollection), dfmanager_(Drawing::FontMgr::CreateDynamicFontMgr()) in FontCollection()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/multimodal/
H A Drosen_render_multimodal.cpp127 auto fontCollection = RosenFontCollection::GetInstance().GetFontCollection(); in UpdateParagraph() local
128 if (!fontCollection) { in UpdateParagraph()
133 …tr<txt::ParagraphBuilder> builder = txt::ParagraphBuilder::CreateTxtBuilder(style, fontCollection); in UpdateParagraph()
137 …ique_ptr<Rosen::TypographyCreate> builder = Rosen::TypographyCreate::Create(style, fontCollection); in UpdateParagraph()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/
H A Dparagraph_builder.cpp25 std::shared_ptr<txt::FontCollection> fontCollection) in Create() argument
27 return std::make_unique<ParagraphBuilderImpl>(style, fontCollection); in Create()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A Djs-apis-graphics-text.md470 let fontCollection = text.FontCollection.getGlobalInstance();
507 let fontCollection: text.FontCollection = new text.FontCollection();
1255 constructor(paragraphStyle: ParagraphStyle, fontCollection: FontCollection)
1266 | fontCollection | [FontCollection](#fontcollection) | 是 | 字体管理器。 |
1282 let fontCollection = new text.FontCollection();
1335 let fontCollection = new text.FontCollection();
1379 let fontCollection = new text.FontCollection();
1430 let fontCollection = new text.FontCollection();
1482 let fontCollection = new text.FontCollection();
1529 let fontCollection = new text.FontCollection();
[all …]
H A Ddrawing__font__collection_8h.md26 … ([OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection) \*fontCollection) | 禁用备用字体。 |
27 … ([OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection) \*fontCollection) | 禁用系统字体。 |
/ohos5.0/docs/zh-cn/application-dev/graphics/
H A Dtext-js-guidelines.md76 …设置文本样式等属性,使用`FontCollection`接口创建一个字体管理器实例fontCollection,使用`ParagraphBuilder`的接口,以myParagraphStyle和
89 let fontCollection = new text.FontCollection();
90 let ParagraphGraphBuilder = new text.ParagraphBuilder(myParagraphStyle, fontCollection);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dobject_mgr.cpp77 void FontCollectionMgr::Insert(void* key, std::shared_ptr<FontCollectionType> fontCollection) in Insert() argument
80 collections_.insert({key, std::move(fontCollection)}); in Insert()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_arc_track.cpp111 auto fontCollection = RosenFontCollection::GetInstance().GetFontCollection(); in SetTextStyle() local
112 if (!fontCollection) { in SetTextStyle()
133 builder = txt::ParagraphBuilder::CreateTxtBuilder(style, fontCollection); in SetTextStyle()
137 builder = Rosen::TypographyCreate::Create(style, fontCollection); in SetTextStyle()

123