Files
NapCatQQ/.pnpm-store/v3/files/8b/0de23fe33d84d152297cc4311d915f1554715bf434310b42898171690b897f58b2d1c3fb066b7e4b05c5a6fe874fdf362d15c746b579a205dac383b4fdf1cb
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

30 lines
813 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getCFFString;
var _cffStandardStrings = _interopRequireDefault(require("./cffStandardStrings"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @file 获取cff字符串
* @author mengke01(kekee000@gmail.com)
*/
/**
* 根据索引获取cff字符串
*
* @param {Object} strings 标准cff字符串索引
* @param {number} index 索引号
* @return {number} 字符串索引
*/
function getCFFString(strings, index) {
if (index <= 390) {
index = _cffStandardStrings.default[index];
}
// Strings below index 392 are standard CFF strings and are not encoded in the font.
else {
index = strings[index - 391];
}
return index;
}