HwFee/HwFee-dsh--plugins-system-fonts ↗★ 0
dsh-system-fonts
DeepSeek Harness 的纯字体插件:把内容/代码/终端三个系统字体选择器放进通用设置里宿主可折叠的字体区(分别紧跟官方族名行,折叠时一并收起),按字体族枚举 Windows 已装字体,另带行距与字距;字重与字号归宿主主题,文案随宿主语言切换。只改字体,不动配色与版式。 / Pure font plugin for DeepSeek Harness: seats text/code/terminal system-font pickers inside the host's collapsible font region in General settings (each after the official family row it replaces, collapsing with it), enumerating installed Windows fonts, plus line-height and letter-spacing; weights and sizes stay with the host theme and copy follows the host language. Fonts only — no colors, no layout. 适合需要自定义正文、代码及终端字体族和行距字距的用户。
같은 패키지 이름의 다른 저장소
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HwFee/HwFee-dsh#ef06b50508f65c3bd61dbb14a7d28d8061665a84&path:plugins/system-fonts安装与使用 · Installation
dsh plugin --profile desktop add link:C:/Users/17445/Desktop/dsh-system-fonts
[!IMPORTANT] 安装完成后必须彻底退出并重启 DeepSeek Harness —— 插件的加载与依赖注入执行于 Profile 组装初始化阶段。 A full restart is required — plugin load happens at profile assembly time.
启动后进入 设置 → 通用,展开「字号大小」右侧的箭头(「更多字体设置」):三个字族下拉选择器无缝嵌入宿主原生的可折叠字体配置区内,分别紧随其所替代的官方族名项之后 —— 依次为「正文字体 / 代码字体 / 代码字号 / 终端字体 / 终端字号」,末尾附带「行距」与「字距」调节滑块,拖动即可实时生效。原生文本输入框已被隐藏,原生字号步进器完好保留;折叠该区域时,插件新增的配置行亦会联动收起。
In Settings → General, open the disclosure on the "Font size" row ("More font settings"): the three family dropdowns live inside the host's collapsible font region, each directly after the official family row it replaces — text font / code font / code size / terminal font / terminal size — with the line-height and tracking sliders last, live-applied. The official family inputs are hidden while the size steppers stay; while the region is collapsed the plugin's rows are hidden with it (they never show as standalone settings entries).
- 行距 / Line height:微调 Markdown 各级字阶的
line-height百分比(范围 50%–100%,紧凑排版)。 - 字距 / Letter spacing:作用于
[class*="markdown"]的letter-spacing(范围 −0.30em ~ +0.30em,0 为宿主默认值)。
安装协议比较:link: 与 file: · link vs file
| 协议 | 行为特征 | 推荐场景 |
|---|---|---|
link:… | 软链指向本地源码目录 | 本地开发与持续更新推荐 —— 编辑代码、构建并重启宿主后立即生效 |
file:… | 完整复制插件包到 Profile 存储 | 生产交付 / 固定特定版本分发 |
当前环境已通过 link: 软链安装至 desktop 与 web 两个 Profile。卸载命令如下:
Both profiles already use link:. Remove with:
dsh plugin --profile desktop remove dsh-system-fonts
为什么不使用浏览器原生 API · Why Not the Browser
Web 标准的 queryLocalFonts 在当前 DSH 环境中不可用:宿主未开放该接口权限,且权限校验逻辑位于 Electron 主进程中。
Local Font Access is unusable — the host never enabled it and the permission handler lives in the Electron main process.