Home
last modified time | relevance | path

Searched refs:FontParser (Results 1 - 13 of 13) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/
H A Dfont_manager.h31 using ResultSet = std::vector<FontParser::FontDescriptor>;
32 FontParser::FontDescriptor* FindFont(ResultSet* fontSrc, FontParser::FontDescriptor& descFind);
38 using ResultCache = std::vector<FontParser::FontDescriptor>;
40 bool ResAccurateMatch(FontParser::FontDescriptor& descSrc, FontParser::FontDescriptor& descFind);
41 bool ResFallbackMatch(FontParser::FontDescriptor& descSrc, FontParser::FontDescriptor& descFind);
42 int ScoreFallbackMatch(FontParser::FontDescriptor& descSrc, FontParser
[all...]
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
H A Dfont_parser.cpp46 FontParser::FontParser() in FontParser() function in OHOS::Rosen::TextEngine::FontParser
59 void FontParser::ProcessCmapTable(const struct CmapTables* cmapTable, FontParser::FontDescriptor& fontDescriptor) in ProcessCmapTable()
63 FontParser::PlatformId platformId = static_cast<FontParser::PlatformId>(record.platformID.Get()); in ProcessCmapTable()
64 FontParser::EncodingIdWin encodingId = static_cast<FontParser::EncodingIdWin>(record.encodingID.Get()); in ProcessCmapTable()
65 if (platformId == FontParser::PlatformId::WINDOWS && encodingId == FontParser in ProcessCmapTable()
[all...]
H A Dfont_descriptor_cache.cpp66 std::vector<TextEngine::FontParser::FontDescriptor> descriptors = in ParserStylishFonts()
69 FontDescSharedPtr descriptorPtr = std::make_shared<TextEngine::FontParser::FontDescriptor>(descriptor); in ParserStylishFonts()
195 if ((systemFontType & (TextEngine::FontParser::SystemFontType::ALL | in ProcessSystemFontType()
196 TextEngine::FontParser::SystemFontType::GENERIC | in ProcessSystemFontType()
197 TextEngine::FontParser::SystemFontType::STYLISH | in ProcessSystemFontType()
198 TextEngine::FontParser::SystemFontType::INSTALLED)) != systemFontType) { in ProcessSystemFontType()
203 if (systemFontType & TextEngine::FontParser::SystemFontType::ALL) { in ProcessSystemFontType()
204 fontType = TextEngine::FontParser::SystemFontType::GENERIC | in ProcessSystemFontType()
205 TextEngine::FontParser::SystemFontType::STYLISH | in ProcessSystemFontType()
206 TextEngine::FontParser in ProcessSystemFontType()
[all...]
H A Dfont_parser.h40 class FontParser { class
97 FontParser();
118 std::unique_ptr<FontParser::FontDescriptor> ParseFontDescriptor(const std::string& fontName,
120 static void SetNameString(FontParser::FontDescriptor& fontDescriptor, std::string& field, unsigned int& fieldLid,
H A Dfont_descriptor_cache.h28 using FontDescSharedPtr = std::shared_ptr<TextEngine::FontParser::FontDescriptor>;
62 TextEngine::FontParser parser_;
H A Dfont_descriptor_mgr.h29 using FontDescSharedPtr = std::shared_ptr<TextEngine::FontParser::FontDescriptor>;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/enum_napi/
H A Dtext_enum_napi.cpp147 { "ALL", static_cast<size_t>(TextEngine::FontParser::SystemFontType::ALL) },
148 { "GENERIC", static_cast<size_t>(TextEngine::FontParser::SystemFontType::GENERIC) },
149 { "STYLISH", static_cast<size_t>(TextEngine::FontParser::SystemFontType::STYLISH) },
150 { "INSTALLED", static_cast<size_t>(TextEngine::FontParser::SystemFontType::INSTALLED) },
/foundation/graphic/graphic_2d/rosen/test/texgine/unittest/
H A Dfont_parser_test.cpp51 void ShowVisibilityFonts(std::vector<FontParser::FontDescriptor>& visibilityFonts) in ShowVisibilityFonts()
95 FontParser fontParser; in HWTEST_F()
115 FontParser fontParser; in HWTEST_F()
116 std::unique_ptr<FontParser::FontDescriptor> font = in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_text_font_descriptor.cpp36 std::shared_ptr<FontParser::FontDescriptor> condition = std::make_shared<FontParser::FontDescriptor>(); in OH_Drawing_MatchFontDescriptors()
47 std::set<std::shared_ptr<FontParser::FontDescriptor>> result; in OH_Drawing_MatchFontDescriptors()
143 std::shared_ptr<TextEngine::FontParser::FontDescriptor> result = nullptr; in OH_Drawing_GetFontDescriptorByFullName()
H A Ddrawing_text_typography.cpp1156 auto fontParser = new (std::nothrow) TextEngine::FontParser; in OH_Drawing_CreateFontParser()
1166 delete ConvertToOriginalText<TextEngine::FontParser>(parser); in OH_Drawing_DestroyFontParser()
1211 std::vector<TextEngine::FontParser::FontDescriptor> systemFontList = in OH_Drawing_FontParserGetSystemFontList()
1212 ConvertToOriginalText<TextEngine::FontParser>(fontParser)->GetVisibilityFonts(std::string(locale.getName())); in OH_Drawing_FontParserGetSystemFontList()
1260 std::vector<TextEngine::FontParser::FontDescriptor> systemFontList = in OH_Drawing_FontParserGetFontByName()
1261 ConvertToOriginalText<TextEngine::FontParser>(fontParser)->GetVisibilityFonts(); in OH_Drawing_FontParserGetFontByName()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/fontdescriptor_napi/include/
H A Djs_fontdescriptor.h26 using FontDescSharedPtr = std::shared_ptr<TextEngine::FontParser::FontDescriptor>;
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dfont_manager.cpp104 Rosen::TextEngine::FontParser fontParser; in GetSystemFontList()
105 std::vector<Rosen::TextEngine::FontParser::FontDescriptor> systemFontList; in GetSystemFontList()
171 Rosen::TextEngine::FontParser fontParser; in GetSystemFont()
172 std::unique_ptr<Rosen::TextEngine::FontParser::FontDescriptor> systemFontDesc; in GetSystemFont()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/fontdescriptor_napi/src/
H A Djs_fontdescriptor.cpp108 cb->matchDesc = std::make_shared<TextEngine::FontParser::FontDescriptor>(); in MatchFontDescriptorsAsync()
219 TextEngine::FontParser::SystemFontType systemFontType; in GetSystemFontFullNamesByType()
272 TextEngine::FontParser::SystemFontType systemFontType; in GetFontDescriptorByFullName()

Completed in 10 milliseconds