dshbase

插件目录 / Developer / dsh-custom-fonts

dsh-custom-fonts

未验证 lsh2002

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-24最近推送
跨平台平台

功能简介

deepseek-harness的修改字体插件

我们的评价
未验证 — 尚未实测

deepseek-harness的修改字体插件 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-custom-fonts

Customize the Chinese and English fonts, the code font, and the global font size of the DeepSeek Harness Web UI — right from a settings page, with a live preview.

中文说明

What it does

A pure client-side plugin (no host half, no restart needed). Once installed it adds a Fonts (字体) page under Settings:

  • UI font · English — used for Latin characters. (Segoe UI, Arial, Georgia, Consolas…)
  • UI font · Chinese — used for Han characters. (微软雅黑 / 宋体 / 黑体 / 楷体 / 思源黑体 / 苹方…)
  • Code font — a separate mono face for code blocks and inline code (pre/code/kbd/samp). (Consolas, JetBrains Mono, Fira Code, Cascadia Code, Sarasa Mono SC…)
  • Font-size offset — a -4..+8 px global slider; kernel text stays sharp, no layout blow-up (see below).
  • Live preview — mixed Chinese/English UI sample plus a code-font sample render as you type (comma-separated font lists and free-form names are both supported).
  • Reset — clears every control and removes all injected styles.

How it works

The plugin injects one global stylesheet:

:root { --dsh-custom-fonts-en: 'English'; --dsh-custom-fonts-zh: 'Chinese'; }
body, body * { font-family: 'English font', 'Chinese font' !important; }
pre, code, kbd, samp { font-family: 'Code font' !important; }
body, body * { font-size: calc(1em + 2px) !important; }  /* when offset ≠ 0 */
  • The font-family fallback chain is the standard way to split fonts by script: Latin characters match the English font first, and Han characters — which the English font has no glyphs for — fall back to the Chinese font. No language detection, no DOM surgery.
  • The code-font rule comes later and wins inside code regions only.
  • The size offset applies calc(1em ± Npx) relative to each element's own size, so every nesting level shifts by exactly N — no exponential cascade. Clearing it (0) restores the default.

Changes apply immediately and globally (message body, sidebar, inputs, everything).

Install

From the plugin market (Settings → Plugin Market) once the entry is published, or:

dsh plugin --profile web add dsh-custom-fonts

or directly from the repository:

dsh plugin --profile web add github:lsh2002/dsh-custom-fonts

Client-only plugin: after a page refresh it is live — no restart required.

Uninstall

Remove it from Settings → Plugins → Plugin configuration (or dsh plugin --profile web remove dsh-custom-fonts), refresh the page; your fonts are reverted automatically.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-custom-fonts」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:lsh2002/dsh-custom-fonts

Headless(CLI)profile:

dsh plugin --profile headless add github:lsh2002/dsh-custom-fonts

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →