新增win安装字体的方法

This commit is contained in:
zyj
2026-03-05 18:22:21 +08:00
parent 97e34c02ac
commit 3a35385ab8
4 changed files with 58 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ type Platform interface {
// DefaultShell 返回默认 Shell
DefaultShell() string
// InstallFont 安装字体
InstallFont(ctx context.Context, fontPath string) error
}
// Detect 检测当前平台并返回对应的 Platform 实现