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

14 lines
298 B
C++
Raw Normal View History

2024-09-13 15:10:58 +08:00
#include "header.h"
void CmapHeader::read(reader* rd){
_version = rd->readUint16();
_numTables = rd->readUint16();
for(auto i = 0; i<_numTables; i++){
CmapEncodingRecord cer(rd);
_recordTables.push_back(cer);
}
}
CmapHeader::CmapHeader(reader* rd){
read(rd);
}