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

31 lines
625 B
Plaintext

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