/foundation/arkui/ui_lite/frameworks/font/ |
H A D | glyphs_file.cpp | 105 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 D | glyphs_file.h | 37 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 D | glyphs_manager.cpp | 34 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 D | glyphs_manager.h | 35 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 D | cj_font_ffi.cpp | 43 NativeOptionFontInfo FfiFontManagerGetFontByName(const char* fontName) in FfiFontManagerGetFontByName() argument 50 return frontend->GetSystemFont(fontName); in FfiFontManagerGetFontByName()
|
H A D | cj_font_ffi.h | 26 CJ_EXPORT NativeOptionFontInfo FfiFontManagerGetFontByName(const char* fontName);
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
H A D | font_parser.cpp | 315 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 D | font_parser.h | 99 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 D | ui_canvas_unit_test.cpp | 1122 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 D | font_platform.h | 31 virtual bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) = 0;
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | font_manager.cpp | 109 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 D | font_manager.h | 96 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo);
|
/foundation/arkui/ace_engine/interfaces/napi/kits/font/ |
H A D | js_font.cpp | 145 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 D | cj_frontend_abstract.cpp | 402 NativeOptionFontInfo CJFrontendAbstract::GetSystemFont(const std::string& fontName) in GetSystemFont() argument 405 if (!pipelineContextHolder_.Get()->GetSystemFont(fontName, fontInfo)) { in GetSystemFont()
|
H A D | cj_frontend_abstract.h | 117 NativeOptionFontInfo GetSystemFont(const std::string& fontName);
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_canvas.h | 294 const char* fontName; member 532 fontStyle.fontName = nullptr;
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | canvas_component.cpp | 231 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 D | pipeline_base.cpp | 311 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 D | plugin_frontend_delegate.h | 201 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | frontend_delegate.h | 277 virtual bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) = 0;
|
H A D | frontend_delegate_impl.h | 306 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsUIContext.js | 40 getFontByName(fontName) { 42 let result_ = this.ohos_font.getFontByName(fontName);
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_canvas.cpp | 666 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 D | frontend_delegate_declarative_ng.h | 212 bool GetSystemFont(const std::string& fontName, FontInfo& fontInfo) override;
|
/foundation/arkui/ui_lite/test/uitest/test_canvas/ |
H A D | ui_test_canvas.cpp | 373 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()
|