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

26 lines
593 B
Plaintext

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