DeepSeek Harness Font Settings Plugin

Introduction

DeepSeek Harness (DSH) provides two entries in its General settings: “Font Size” and “Font.” However, the font field is a plain text input that only accepts a single style. To use system-installed fonts or build a multi-font fallback stack, you have to manually concatenate strings — a process that is both tedious and error-prone. This plugin generates a set of searchable, sortable font stacks for four font roles from the system’s installed fonts, replacing the built-in plain text input.

What It Is

This plugin is a fun cosmetic/typography plugin for DSH, developed by maintainer hluica. It sources fonts from the system and provides a multi-font fallback stack for each of the following: body font, code font, terminal font, and Markdown rendering font. It supports adding, moving up, moving down, and removing entries, with a maximum of 6 fonts per stack. The body font, code font, and terminal font are still managed by the built-in ui-theme; only the Markdown rendering font is managed directly by this plugin.

Core Features

The plugin adds a “Font” row under Settings → General. Expanding it reveals four sections: Body Font, Code Font, Terminal Font, and Markdown Rendering Font.

  1. System Font List: Clicking “+ Add Font” opens a searchable list of system fonts, sourced from the Local Font Access API (window.queryLocalFonts()). If the environment does not support it or access is denied, the list falls back to a built-in list of commonly used fonts, and the menu will explain the reason.
  2. Font Stack Management: Each section’s selected fonts can be moved up, moved down, or removed. Up to 6 fonts are allowed, and they are applied as a fallback stack in top-to-bottom order. A font that is selected but not found on the system will be marked with a !, with an explanation on hover.
  3. Reset to Default: Each section can be “Reset to Default,” clearing it and reverting to the built-in font stack (the Markdown section will follow the UI body font).
  4. Apply Immediately: Selecting “Apply Immediately” applies the font stack to the corresponding area without requiring a page refresh.

The body font, code font, and terminal font storage and rendering are still provided by the built-in ui-theme (UI font); this plugin only supplies a more friendly selection interface. The Markdown rendering font is managed by this plugin via a token override layer, affecting only the text font in Markdown rendering areas. Code blocks and inline code still use the code font, and the UI and terminal still use the UI font.

Installation & Enablement

This plugin is distributed as an npm package named @local/dsh-font-settings. Install it in DSH’s profile directory:

npm install @local/dsh-font-settings

Once installed, locate the plugin in DSH’s “Plugin List” and click Enable. Upon activation, the plugin automatically hides the built-in “Font Size” row’s font input and adds a “Font” row under Settings → General.

Typical Usage

  1. Open DSH’s Settings → General.
  2. Find the “Font” row and click to expand it.
  3. For each font section (Body Font / Code Font / Terminal Font / Markdown Rendering Font), click “+ Add Font” and select the desired fonts from the popup system font list.
  4. Use the Move Up, Move Down, and Remove buttons to adjust the font stack order, keeping up to 6 fonts.
  5. Click “Reset to Default” to clear that section and revert to built-in behavior.
  6. Once configured, select “Apply Immediately” to apply the fonts to the corresponding areas right away.

The Markdown rendering font applies to all Markdown rendering areas, including model responses, thinking processes, tool outputs, plan/deliverable previews, plugin page READMEs, sidebar Markdown document previews, traces, and question cards. Code blocks and inline code still use the code font, and the UI and terminal still use the UI font.

Use Cases & Caveats

This plugin is suitable for users who want to use system fonts in the DSH interface or who wish to specify a dedicated font for Markdown rendering areas. The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installation.

Known limitations include: it only affects the Web client UI; the terminal font is consumed by the built-in xterm via terminalFontFamily, and the plugin does not take additional control; the 28 tokens for the Markdown rendering font mirror the contract of the current DSH version and must be synchronized if upstream changes the token hierarchy.

Conclusion

By leveraging system font stacks and a token override layer, this plugin makes DSH’s font settings more flexible and controllable. Installation and usage are straightforward, making it well-suited for developers who want fine-grained control over their interface typography. Plugin directory: https://www.skillhub.cn/plugins/hluica/dsh-font-settings; GitHub repository: https://github.com/hluica/dsh-font-settings

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye