Files
NapCatQQ/.pnpm-store/v3/files/c3/945587546cade798a918aa2602a151446bcb9319621f479b2565c61da8aa660c0df09f3785612dbf019600c86d2a7d617346d121b76e55a9ccd035d7d9a870
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

32 lines
635 B
Plaintext

/**
* @file fpgm 表
* @author mengke01(kekee000@gmail.com)
*
* reference: https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6fpgm.html
*/
import table from './table';
export default table.create(
'fpgm',
[],
{
read(reader, ttf) {
const length = ttf.tables.fpgm.length;
return reader.readBytes(this.offset, length);
},
write(writer, ttf) {
if (ttf.fpgm) {
writer.writeBytes(ttf.fpgm, ttf.fpgm.length);
}
},
size(ttf) {
return ttf.fpgm ? ttf.fpgm.length : 0;
}
}
);