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

14 lines
298 B
C++

#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);
}