DeepSeek Harness (DSH) adopts a plugin-based architecture, aiming to provide users with flexible extensibility. During agent development and debugging, the default UI font and code font may not fully meet personal reading habits or specific scenario requirements. The dsh-font-customizer plugin addresses this pain point by allowing users to independently customize the font stack for the Web interface and the monospace font for code, and by providing fine-tuning for the base font size.
This is a DSH plugin maintained by user daha1216. Its core value is providing a complete font customization solution, including separation of UI and code fonts, font size adjustment, and local font scanning.
Core Features¶
-
Separation of UI and Code Fonts
The plugin supports independently configuring the global UI font stack (--dsw-font-family) and the monospace font for code blocks (--ds-font-family-code) through parameters, decoupling the general UI font from the code display font. -
Base Font Size Fine-Tuning
Supports freely adjusting the base font size within the 12–17px range to suit different screen display requirements. -
Local Font Detection and Scanning
Provides intelligent detection to identify whether preset fonts are installed locally (installed fonts are marked). It also supports one-click invocation of the local fonts API to scan all installed system fonts. -
Common Font Presets and Customization
Built-in presets include Source Han Sans/Song, LXGW WenKai, HarmonyOS fonts, as well as popular code fonts such as JetBrains Mono and Fira Code. In addition to using presets, users can manually enter any CSS font stack. -
Host Persistence
Configuration is written atomically to local storage. This enables automatic synchronization across browsers and multiple devices, and supports one-click reset of the configuration.
Installation and Enablement¶
Run the following command in a terminal to install or update:
dsh plugin --profile web add github:daha1216/dsh-font-customizer
After installation or update, restart DSH Web and refresh the page. The settings entry is usually located at Settings → General → Fonts.
Typical Usage¶
- Configure font stacks independently: Set
--dsw-font-familyto specify the UI font, and set--ds-font-family-codeto specify the code font. - Adjust font size: Choose an appropriate value within the 12–17px range.
- Scan fonts: Click the scan button to obtain the list of installed system fonts through the local fonts API.
- Customize fonts: Select from the preset list, or manually enter a CSS font stack string.
Considerations¶
This plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation. Since it involves calls to the local fonts API, ensure that the host environment has the appropriate system font resources.