Files
NapCatQQ/.pnpm-store/v3/files/2f/047b22e9bf63fb2e5601a3634b407eb9d727ac4d4d682b22f436b3ce2ea3f01a61cbf42b58d5e286c06d8d12c0fa7ecef001c453f1267e7e6effa9b46b7842
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

31 lines
609 B
Plaintext

/**
* @file prep表
* @author mengke01(kekee000@gmail.com)
*
* @reference: http://www.microsoft.com/typography/otspec140/prep.htm
*/
import table from './table';
export default table.create(
'prep',
[],
{
read(reader, ttf) {
const length = ttf.tables.prep.length;
return reader.readBytes(this.offset, length);
},
write(writer, ttf) {
if (ttf.prep) {
writer.writeBytes(ttf.prep, ttf.prep.length);
}
},
size(ttf) {
return ttf.prep ? ttf.prep.length : 0;
}
}
);