blog/cpp/fonts/core/tables/cmap/cmap.h

25 lines
533 B
C
Raw Normal View History

2024-09-13 15:10:58 +08:00
#ifndef __TABLE_CMAP_H__
#define __TABLE_CMAP_H__
#include "../../../reader/reader.h"
#include "tables.h"
#include "header.h"
class CmapTable
{
private:
CmapHeader _header;
uint16_t _tableFormat;
CmapTableBase *_table;
public:
CmapTable():_tableFormat(0),_table(nullptr){};
~CmapTable(){};
CmapTable(reader* rd){read(rd);};
void read(reader*);
uint16_t tableFormat()const{return _tableFormat;}
CmapTableBase* table()const{return _table;}
CmapHeader header()const{return _header;}
};
#endif