Home
last modified time | relevance | path

Searched refs:fontName (Results 1 - 25 of 31) sorted by relevance

12

/foundation/arkui/ui_lite/frameworks/font/
H A Dglyphs_file.cpp105 void GlyphsFile::SetFontName(const char* fontName) in SetFontName() argument
111 if (fontName == nullptr) { in SetFontName()
116 uint32_t nameLen = strlen(fontName); in SetFontName()
127 if (memcpy_s(fontName_, nameLen, fontName, nameLen) != EOK) { in SetFontName()
133 int8_t GlyphsFile::SetFile(const char* fontName, int32_t fp, uint32_t start) in SetFile() argument
135 SetFontName(fontName); in SetFile()
190 bool GlyphsFile::IsSameFile(const char* fontName) in IsSameFile() argument
192 if ((fontName_ == nullptr) || (fontName == nullptr)) { in IsSameFile()
197 uint32_t nameLen = strlen(fontName); in IsSameFile()
201 return (strcmp(fontName_, fontName in IsSameFile()
253 GetFontVersion(const char* fontName, char* version, uint8_t len) GetFontVersion() argument
[all...]
H A Dglyphs_file.h37 int8_t GetFontVersion(const char* fontName, char* version, uint8_t len);
45 int8_t SetFile(const char* fontName, int32_t fp, uint32_t start);
49 bool IsSameFile(const char* fontName);
73 void SetFontName(const char* fontName);
H A Dglyphs_manager.cpp34 int8_t GlyphsManager::SetFile(const char* fontName, int32_t fp, uint32_t start, uint16_t fileType) in SetFile() argument
37 if (glyphsFiles_[i]->IsSameFile(fontName)) { in SetFile()
49 if (instance->SetFile(fontName, fp, start) != RET_VALUE_OK) { in SetFile()
61 int8_t GlyphsManager::GetFontVersion(const char* fontName, char* version, uint8_t len) in GetFontVersion() argument
64 if (glyphsFiles_[i]->GetFontVersion(fontName, version, len) == RET_VALUE_OK) { in GetFontVersion()
H A Dglyphs_manager.h35 int8_t GetFontVersion(const char* fontName, char* version, uint8_t len);
49 int8_t SetFile(const char* fontName, int32_t fp, uint32_t start, uint16_t fileType);
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/font/
H A Dcj_font_ffi.cpp43 NativeOptionFontInfo FfiFontManagerGetFontByName(const char* fontName) in FfiFontManagerGetFontByName() argument
50 return frontend->GetSystemFont(fontName); in FfiFontManagerGetFontByName()
H A Dcj_font_ffi.h26 CJ_EXPORT NativeOptionFontInfo FfiFontManagerGetFontByName(const char* fontName);
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
H A Dfont_parser.cpp315 std::string fontName = fontSet_[i].substr(idx + 1, fontSet_[i].size() - idx - 1); in SetFontDescriptor() local
316 if (std::find(fontSetCache.begin(), fontSetCache.end(), fontName) == fontSetCache.end()) { in SetFontDescriptor()
317 fontSetCache.push_back(fontName); in SetFontDescriptor()
445 std::unique_ptr<FontParser::FontDescriptor> FontParser::ParseFontDescriptor(const std::string& fontName, in ParseFontDescriptor() argument
455 if ((*fontFileMap).find(fontName) == (*fontFileMap).end()) { in ParseFontDescriptor()
459 std::string path = SYSTEM_FONT_PATH + (*fontFileMap)[fontName]; in ParseFontDescriptor()
462 path = SYS_PROD_FONT_PATH + (*fontFileMap)[fontName]; in ParseFontDescriptor()
472 fontDescriptor.requestedFullname = fontName; in ParseFontDescriptor()
480 if (fontDescriptor.fullName == fontName) { in ParseFontDescriptor()
486 std::unique_ptr<FontParser::FontDescriptor> FontParser::GetVisibilityFontByName(const std::string& fontName, in GetVisibilityFontByName() argument
[all...]
H A Dfont_parser.h99 std::unique_ptr<FontDescriptor> GetVisibilityFontByName(const std::string& fontName,
118 std::unique_ptr<FontParser::FontDescriptor> ParseFontDescriptor(const std::string& fontName,
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_canvas_unit_test.cpp1122 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in HWTEST_F()
1128 EXPECT_EQ(fontStyle.fontName, DEFAULT_VECTOR_FONT_FILENAME); in HWTEST_F()
1153 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in HWTEST_F()
1160 EXPECT_EQ(fontStyle.fontName, DEFAULT_VECTOR_FONT_FILENAME); in HWTEST_F()
1188 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in HWTEST_F()
1194 EXPECT_EQ(fontStyle.fontName, DEFAULT_VECTOR_FONT_FILENAME); in HWTEST_F()
1219 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in HWTEST_F()
1226 EXPECT_EQ(fontStyle.fontName, DEFAULT_VECTOR_FONT_FILENAME); in HWTEST_F()
1251 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in HWTEST_F()
1259 EXPECT_EQ(fontStyle.fontName, DEFAULT_VECTOR_FONT_FILENAM in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/common/font/
H A Dfont_platform.h31 virtual bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) = 0;
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dfont_manager.cpp109 std::string fontName = systemFontList[i].fullName; in GetSystemFontList()
110 fontList.emplace_back(fontName); in GetSystemFontList()
160 bool FontManager::GetSystemFont(const std::string& fontName, FontInfo& fontInfo) in GetSystemFont() argument
166 isGetFont = fontPlatform->GetSystemFont(fontName, fontInfo); in GetSystemFont()
174 systemFontDesc = fontParser.GetVisibilityFontByName(fontName, locale); in GetSystemFont()
176 if (fontName == systemFontDesc->fullName) { in GetSystemFont()
H A Dfont_manager.h96 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo);
/foundation/arkui/ace_engine/interfaces/napi/kits/font/
H A Djs_font.cpp145 char fontName[STR_BUFFER_SIZE] = { 0 }; in JSgetFontByName() local
147 napi_get_value_string_utf8(env, argv, fontName, STR_BUFFER_SIZE, &len); in JSgetFontByName()
149 std::string fontNameStr(fontName, len); in JSgetFontByName()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend_abstract.cpp402 NativeOptionFontInfo CJFrontendAbstract::GetSystemFont(const std::string& fontName) in GetSystemFont() argument
405 if (!pipelineContextHolder_.Get()->GetSystemFont(fontName, fontInfo)) { in GetSystemFont()
H A Dcj_frontend_abstract.h117 NativeOptionFontInfo GetSystemFont(const std::string& fontName);
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_canvas.h294 const char* fontName; member
532 fontStyle.fontName = nullptr;
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcanvas_component.cpp231 fontStyle_.fontName = defaultFontName; in CanvasComponent()
250 // free fontStyle_.fontName memory which malloc in FontSetter method. in ReleaseNativeViews()
251 if (fontStyle_.fontName != nullptr) { in ReleaseNativeViews()
252 ace_free(const_cast<char *>(fontStyle_.fontName)); in ReleaseNativeViews()
253 fontStyle_.fontName = nullptr; in ReleaseNativeViews()
554 // free default component->fontStyle_.fontName memory. in FontSetter()
555 if (component->fontStyle_.fontName != nullptr) { in FontSetter()
556 ace_free(const_cast<char *>(component->fontStyle_.fontName)); in FontSetter()
557 component->fontStyle_.fontName = nullptr; in FontSetter()
560 component->fontStyle_.fontName in FontSetter()
[all...]
/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_base.cpp311 bool PipelineBase::GetSystemFont(const std::string& fontName, FontInfo& fontInfo) in GetSystemFont() argument
314 return fontManager_->GetSystemFont(fontName, fontInfo); in GetSystemFont()
/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/
H A Dplugin_frontend_delegate.h201 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Dfrontend_delegate.h277 virtual bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) = 0;
H A Dfrontend_delegate_impl.h306 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsUIContext.js40 getFontByName(fontName) {
42 let result_ = this.ohos_font.getFontByName(fontName);
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_canvas.cpp666 label->SetFont(fontStyle.fontName, fontStyle.fontSize); in DrawLabel()
1448 textCompent->SetFont(fontStyle.fontName, fontStyle.fontSize); in MeasureText()
1499 text->SetFont(textParam->fontStyle.fontName, textParam->fontStyle.fontSize); in DoDrawText()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
H A Dfrontend_delegate_declarative_ng.h212 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
/foundation/arkui/ui_lite/test/uitest/test_canvas/
H A Dui_test_canvas.cpp373 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in UIKitCanvasTestDrawImage002()
398 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in UIKitCanvasTestDrawLabel001()
1492 fontStyle.fontName = DEFAULT_VECTOR_FONT_FILENAME; in RM011StrokeText001()

Completed in 25 milliseconds

12