mirror of
https://github.com/YuleBest/FontMM.git
synced 2026-12-04 03:11:48 +08:00
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// 全局路径与外部链接常量
|
|
export const FONTS_DIR = '/data/adb/modules/FontMM/FONTS';
|
|
export const MULTI_DIR = `${FONTS_DIR}/multi`;
|
|
export const SLOT_MODES_FILE = `${FONTS_DIR}/slot-modes.txt`;
|
|
export const WEBROOT_DIR = '/data/adb/modules/FontMM/webroot';
|
|
export const TEST_FONT_DIR = `${WEBROOT_DIR}/fonts-test`;
|
|
// 覆写字体配置: 调用模块内置 Go 程序 fontmm-wght (本地读写全部 6 个 XML, 无命令长度限制)
|
|
export const WGHT_BIN = '/data/adb/modules/FontMM/tools/fontmm-wght';
|
|
|
|
// 多字重模式支持的标准 9 档字重
|
|
export const MULTI_WEIGHTS = [100, 200, 300, 400, 500, 600, 700, 800, 900] as const;
|
|
|
|
export const WEIGHT_LABELS: Record<number, string> = {
|
|
100: '淡体',
|
|
200: '特细',
|
|
300: '细体',
|
|
400: '标准',
|
|
500: '适中',
|
|
600: '次粗',
|
|
700: '粗体',
|
|
800: '特粗',
|
|
900: '浓体',
|
|
};
|
|
|
|
// 捐献 (支付宝/爱发电) 与开发者主页 (浏览器) 链接
|
|
export const DONATE_ALIPAY_URI =
|
|
'alipays://platformapi/startapp?saId=10000007&qrcode=https://qr.alipay.com/2m615805eflrafv8ipc2p15';
|
|
export const ALIPAY_PKG = 'com.eg.android.AlipayGphone';
|
|
export const DONATE_IFDIAN_URL = 'https://www.ifdian.net/a/xiaoyule';
|
|
export const DEV_PROFILE_URL = 'https://github.com/YuleBest';
|