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

24 lines
558 B
C
Raw Normal View History

2024-09-13 15:10:58 +08:00
#ifndef __CMAP_HEADER_H__
#define __CMAP_HEADER_H__
#include <cstdint>
#include "encoding_record.h"
#include <list>
class CmapHeader
{
private:
uint16_t _version;
uint16_t _numTables;
std::list<CmapEncodingRecord> _recordTables;
public:
CmapHeader():_version(0),_numTables(0), _recordTables(){};
CmapHeader(reader*);
~CmapHeader(){};
void read(reader*);
uint16_t version(){return _version;};
uint16_t numberTables(){return _numTables;};
std::list<CmapEncodingRecord> recordTables(){return _recordTables;};
};
#endif