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

26 lines
606 B
Plaintext

/**
* @file 获取cff字符串
* @author mengke01(kekee000@gmail.com)
*/
import cffStandardStrings from './cffStandardStrings';
/**
* 根据索引获取cff字符串
*
* @param {Object} strings 标准cff字符串索引
* @param {number} index 索引号
* @return {number} 字符串索引
*/
export default function getCFFString(strings, index) {
if (index <= 390) {
index = cffStandardStrings[index];
}
// Strings below index 392 are standard CFF strings and are not encoded in the font.
else {
index = strings[index - 391];
}
return index;
}