#include "font.h" #include "tables/table_name.h" #include "reader/buffer.h" #include #include "../reader/file.h" font::font(const char* fontFile){ file rd(fontFile); path = rd.getPath(); read(&rd); } void font::read(reader* rd){ //读取字体头 head.read(rd); //读取表信息 table.read(rd, head.getTableCount()); } void font::display(){ std::cout<<"font file"<