Home
last modified time | relevance | path

Searched refs:CMapTable (Results 1 – 10 of 10) sorted by relevance

/external/sfntly/cpp/src/sfntly/table/core/
Dcmap_table.cc36 const int32_t CMapTable::NOTDEF = 0;
38 CMapTable::CMapId CMapTable::WINDOWS_BMP = {
42 CMapTable::CMapId CMapTable::WINDOWS_UCS4 = {
46 CMapTable::CMapId CMapTable::MAC_ROMAN = {
54 CMapTable::CMapTable(Header* header, ReadableFontData* data) in CMapTable() function in sfntly::CMapTable
58 CMapTable::~CMapTable() {} in ~CMapTable()
60 CALLER_ATTACH CMapTable::CMap* CMapTable::GetCMap(const int32_t index) { in GetCMap()
81 return down_cast<CMapTable::CMap*>(cmap_builder->Build()); in GetCMap()
84 CALLER_ATTACH CMapTable::CMap* CMapTable::GetCMap(const int32_t platform_id, in GetCMap()
89 CALLER_ATTACH CMapTable::CMap*
[all …]
Dcmap_table.h49 class CMapTable : public SubTableContainerTable, public RefCounted<CMapTable> {
159 friend class CMapTable::Builder;
541 CMapIterator(CMapTable* table, const CMapFilter* filter);
548 CMapTable* table_;
581 virtual ~CMapTable();
698 CMapTable(Header* header, ReadableFontData* data);
704 typedef std::vector<CMapTable::CMapId> CMapIdList;
705 typedef Ptr<CMapTable> CMapTablePtr;
706 typedef std::vector<Ptr<CMapTable::CMapFormat4::Builder::Segment> > SegmentList;
/external/sfntly/cpp/src/test/
Dcmap_editing_test.cc42 Ptr<CMapTable::Builder> cmap_table_builder = in TEST()
43 (CMapTable::Builder*)font_builder->GetTableBuilder(Tag::cmap); in TEST()
44 ASSERT_NE(cmap_table_builder, reinterpret_cast<CMapTable::Builder*>(NULL)); in TEST()
45 CMapTable::CMapBuilderMap* in TEST()
49 for (CMapTable::CMapBuilderMap::iterator in TEST()
51 if (it->second->cmap_id() == CMapTable::WINDOWS_BMP) { in TEST()
59 CMapTablePtr cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in TEST()
61 CMapTable::CMapPtr cmap; in TEST()
62 cmap.Attach(cmap_table->GetCMap(CMapTable::WINDOWS_BMP)); in TEST()
63 ASSERT_EQ(CMapTable::WINDOWS_BMP, cmap->cmap_id()); in TEST()
[all …]
Dcmap_iterator_test.cc68 int32_t CompareCMapIterAndBitSet(CMapTable::CMap::CharacterIterator*
72 Ptr<CMapTable::CMap> cmap_;
82 Ptr<CMapTable> cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in SetUp()
93 if (g != CMapTable::NOTDEF) in GenerateCMapEntries()
101 CompareCMapIterAndBitSet(CMapTable::CMap::CharacterIterator* character_iterator, in CompareCMapIterAndBitSet()
132 CMapTable::CMap::CharacterIterator* character_iterator = NULL; in TEST_P()
135 reinterpret_cast<CMapTable::CMap::CharacterIterator*>(NULL)); in TEST_P()
142 CMapIteratorTestCase(CMapTable::WINDOWS_BMP.platform_id,
143 CMapTable::WINDOWS_BMP.encoding_id,
Dcmap_test.cc97 Ptr<CMapTable::CMap> cmap1_;
98 Ptr<CMapTable::CMap> cmap2_;
123 Ptr<CMapTable> cmap_table = in CommonSetUp()
124 down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in CommonSetUp()
127 ASSERT_NE((cmap1_), reinterpret_cast<CMapTable::CMap*>(NULL)); in CommonSetUp()
130 ASSERT_NE((cmap2_), reinterpret_cast<CMapTable::CMap*>(NULL)); in CommonSetUp()
/external/sfntly/cpp/src/sample/subtly/
Dfont_assembler.cc77 Ptr<CMapTable::Builder> cmap_table_builder = in AssembleCMapTable()
78 down_cast<CMapTable::Builder*> in AssembleCMapTable()
82 Ptr<CMapTable::CMapFormat4::Builder> cmap_builder = in AssembleCMapTable()
83 down_cast<CMapTable::CMapFormat4::Builder*> in AssembleCMapTable()
85 CMapTable::WINDOWS_BMP)); in AssembleCMapTable()
94 Ptr<CMapTable::CMapFormat4::Builder::Segment> current_segment; in AssembleCMapTable()
115 new CMapTable::CMapFormat4::Builder:: in AssembleCMapTable()
127 Ptr<CMapTable::CMapFormat4::Builder::Segment> segment = segment_list->at(i); in AssembleCMapTable()
133 new CMapTable::CMapFormat4::Builder::Segment(0xffff, 0xffff, 1, 0); in AssembleCMapTable()
Dfont_info.cc129 Ptr<CMapTable> cmap_table = down_cast<CMapTable*>(font_->GetTable(Tag::cmap)); in Initialize()
131 cmap_.Attach(cmap_table->GetCMap(CMapTable::WINDOWS_BMP)); in Initialize()
176 CMapTable::CMap::CharacterIterator* character_iterator = cmap_->Iterator(); in GetCharacterMap()
Dfont_info.h123 sfntly::Ptr<sfntly::CMapTable::CMap> cmap_;
/external/sfntly/cpp/src/test/autogenerated/
Dcmap_basic_test.cc53 Ptr<CMapTable> cmap_table_;
71 cmap_table_ = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in SetUp()
74 ASSERT_NE(cmap_table_, reinterpret_cast<CMapTable*>(NULL)); in SetUp()
95 Ptr<CMapTable::CMap> cmap; in TEST_P()
/external/sfntly/cpp/src/sfntly/table/
Dtable.cc90 CMapTable::Builder::CreateBuilder(header, table_data)); in GetBuilder()