Files
NapCatQQ/.pnpm-store/v3/files/ba/470b9d26574894bdf45dc172737a46926d61b89a86c1539c7fe9c99483b0411d6be757a923309e946a13ae1bc2cf4aa9d3658953e01bfa7f350645aea6cc3a
T
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

21 lines
506 B
Plaintext

/**
* @file 复合字形设置轮廓,转化为简单字形
* @author mengke01(kekee000@gmail.com)
*/
/**
* 复合字形转简单字形
*
* @param {Object} glyf glyf对象
* @param {Array} contours 轮廓数组
* @return {Object} 转换后对象
*/
export default function compound2simple(glyf, contours) {
glyf.contours = contours;
delete glyf.compound;
delete glyf.glyfs;
// 这里hinting信息会失效,删除hinting信息
delete glyf.instructions;
return glyf;
}