Home
last modified time | relevance | path

Searched refs:FontParser (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/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& f… in ProcessCmapTable()
63FontParser::PlatformId platformId = static_cast<FontParser::PlatformId>(record.platformID.Get()); in ProcessCmapTable()
64FontParser::EncodingIdWin encodingId = static_cast<FontParser::EncodingIdWin>(record.encodingID.Ge… in ProcessCmapTable()
65 …if (platformId == FontParser::PlatformId::WINDOWS && encodingId == FontParser::EncodingIdWin::SYMB… in ProcessCmapTable()
131FontParser::NameId nameId = static_cast<FontParser::NameId>(nameTable->nameRecord[i].nameId.Get()); in ProcessNameTable()
346 std::vector<FontParser::FontDescriptor> FontParser::GetVisibilityFonts(const std::string &locale) in GetVisibilityFonts()
400 std::vector<std::shared_ptr<FontParser::FontDescriptor>> FontParser::ParserFontDescriptorsFromPath( in ParserFontDescriptorsFromPath()
413 std::vector<std::shared_ptr<FontParser::FontDescriptor>> FontParser::CreateFontDescriptors( in CreateFontDescriptors()
438 std::unique_ptr<FontParser::FontDescriptor> FontParser::ParseFontDescriptor(const std::string& font… in ParseFontDescriptor()
[all …]
H A Dfont_descriptor_cache.cpp157 if ((static_cast<uint32_t>(systemFontType) & (TextEngine::FontParser::SystemFontType::ALL | in ProcessSystemFontType()
158 TextEngine::FontParser::SystemFontType::GENERIC | in ProcessSystemFontType()
159 TextEngine::FontParser::SystemFontType::STYLISH | in ProcessSystemFontType()
160 TextEngine::FontParser::SystemFontType::INSTALLED)) != systemFontType) { in ProcessSystemFontType()
165 if (static_cast<uint32_t>(systemFontType) & TextEngine::FontParser::SystemFontType::ALL) { in ProcessSystemFontType()
166 fontType = TextEngine::FontParser::SystemFontType::GENERIC | in ProcessSystemFontType()
167 TextEngine::FontParser::SystemFontType::STYLISH | in ProcessSystemFontType()
168 TextEngine::FontParser::SystemFontType::INSTALLED; in ProcessSystemFontType()
186 if (static_cast<uint32_t>(fontType) & TextEngine::FontParser::SystemFontType::GENERIC) { in GetSystemFontFullNamesByType()
191 if (static_cast<uint32_t>(fontType) & TextEngine::FontParser::SystemFontType::STYLISH) { in GetSystemFontFullNamesByType()
[all …]
H A Dfont_parser.h40 class FontParser {
97 FontParser();
120 std::unique_ptr<FontParser::FontDescriptor> ParseFontDescriptor(const std::string& fontName,
122 …static void SetNameString(FontParser::FontDescriptor& fontDescriptor, std::string& field, unsigned…
H A Dfont_descriptor_cache.h28 using FontDescSharedPtr = std::shared_ptr<TextEngine::FontParser::FontDescriptor>;
52 TextEngine::FontParser parser_;
H A Dfont_descriptor_mgr.h29 using FontDescSharedPtr = std::shared_ptr<TextEngine::FontParser::FontDescriptor>;
/ohos5.0/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::FontDescriptor& descFind);
43FontParser::FontDescriptor* FindAccurateResult(ResultSet* fontSrc, FontParser::FontDescriptor& des…
44FontParser::FontDescriptor* FindFallbackResult(ResultSet* fontSrc, FontParser::FontDescriptor& des…
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/texgine/unittest/
H A Dfont_descriptor_cache_test.cpp53 TextEngine::FontParser::FontDescriptor descriptor;
68 FontDescSharedPtr desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
91 desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
127 FontDescSharedPtr finish = std::make_shared<TextEngine::FontParser::FontDescriptor>();
166 FontDescSharedPtr finish = std::make_shared<TextEngine::FontParser::FontDescriptor>();
244 FontDescSharedPtr desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
249 FontDescSharedPtr descPtr = std::make_shared<TextEngine::FontParser::FontDescriptor>();
274 FontDescSharedPtr desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
303 FontDescSharedPtr desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
332 FontDescSharedPtr desc = std::make_shared<TextEngine::FontParser::FontDescriptor>();
[all …]
H A Dfont_parser_test.cpp51 void ShowVisibilityFonts(std::vector<FontParser::FontDescriptor>& visibilityFonts) in ShowVisibilityFonts()
95 FontParser fontParser;
115 FontParser fontParser;
116 std::unique_ptr<FontParser::FontDescriptor> font =
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Dfont_utils.h23 using OHOS::Rosen::TextEngine::FontParser;
24 bool CopyFontDescriptor(OH_Drawing_FontDescriptor* dst, const FontParser::FontDescriptor& src);
H A Dfont_utils.cpp21 bool CopyFontDescriptor(OH_Drawing_FontDescriptor* dst, const FontParser::FontDescriptor& src) in CopyFontDescriptor()
H A Ddrawing_text_font_descriptor.cpp66 std::shared_ptr<TextEngine::FontParser::FontDescriptor> result = nullptr; in OH_Drawing_GetFontDescriptorByFullName()
H A Ddrawing_text_typography.cpp1470 auto fontParser = new (std::nothrow) TextEngine::FontParser; in OH_Drawing_CreateFontParser()
1480 delete ConvertToOriginalText<TextEngine::FontParser>(parser); in OH_Drawing_DestroyFontParser()
1525 std::vector<TextEngine::FontParser::FontDescriptor> systemFontList = in OH_Drawing_FontParserGetSystemFontList()
1526 …ConvertToOriginalText<TextEngine::FontParser>(fontParser)->GetVisibilityFonts(std::string(locale.g… in OH_Drawing_FontParserGetSystemFontList()
1574 std::vector<TextEngine::FontParser::FontDescriptor> systemFontList = in OH_Drawing_FontParserGetFontByName()
1575 ConvertToOriginalText<TextEngine::FontParser>(fontParser)->GetVisibilityFonts(); in OH_Drawing_FontParserGetFontByName()
/ohos5.0/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) },
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/
H A Dfont_manager.cpp101 Rosen::TextEngine::FontParser fontParser; in GetSystemFontList()
102 std::vector<Rosen::TextEngine::FontParser::FontDescriptor> systemFontList; in GetSystemFontList()
168 Rosen::TextEngine::FontParser fontParser; in GetSystemFont()
169 std::unique_ptr<Rosen::TextEngine::FontParser::FontDescriptor> systemFontDesc; in GetSystemFont()
/ohos5.0/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>;
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/fontdescriptor_napi/src/
H A Djs_fontdescriptor.cpp108 TextEngine::FontParser::SystemFontType systemFontType; in GetSystemFontFullNamesByType()
161 TextEngine::FontParser::SystemFontType systemFontType; in GetFontDescriptorByFullName()