freetype
sfnt表
FT_ULong tableCount = 0;
FT_Error error;
// When 'tag' is nullptr, returns number of tables in 'length'.
error = FT_Sfnt_Table_Info(face, 0, nullptr, &tableCount);
if (error)
return false;
for (FT_ULong tableIndex = 0; tableIndex < tableCount; ++tableIndex) {
FT_ULong tableTag;
FT_ULong tableLength;
error = FT_Sfnt_Table_Info(face, tableIndex, &tableTag, &tableLength);
if (error)
return false;
FontInfo::Table table{(uint32_t)tableTag, (uint32_t)tableLength};
m_fontInfo.tables.emplace_back(table);
}
字体名称
const FT_UI