UNPKG

koishi-plugin-jrys-prpr

Version:

[<ruby>**jrys-prpr**<rp>(</rp><rt>点我查看预览图</rt><rp>)</rp></ruby>](https://i0.hdslb.com/bfs/article/ae33f1b2e9dbc3fe89363a40fbf040703493298333289018.png)😽QQ官方json按钮支持,20个群即可发按钮!支持 monetary!很好看的字体! 支持自动清理记录内容。

24 lines (23 loc) 968 B
import fs from 'node:fs'; import type { Context } from 'koishi'; import type { Config } from '../types'; export declare const defaultFontName = "\u5343\u56FE\u9A6C\u514B\u624B\u5199\u4F53lite"; export declare const localFontPath: string; /** * 初始化字体加载:始终以内置字体名注册内置字体到 glyph, * 避免将内置字体文件错误注册到用户配置的自定义字体名下。 */ export declare function initializeFont(ctx: Context): Promise<void>; export declare function getFontFormatFromDataUrl(dataUrl: string): string; /** * 获取字体 Data URL * 优先使用 glyph 服务,否则使用本地字体 */ export declare function getFontDataUrl(ctx: Context, config: Config, logInfo: (...args: any[]) => void): Promise<{ fontDataUrl: string; selectedFont: string; }>; /** * 读取 TTF 字体文件并转换为 Base64 编码 */ export declare function getFontBase64(fontPath: fs.PathOrFileDescriptor): Promise<string>;