dsh-font-settings: Searchable font picker for DSH general settings

Introduction

The DeepSeek Harness (DSH) Web interface provides font configuration for text, code, and terminal in Settings → General. The default interaction requires you to input comma-separated font family names from memory, which is prone to typos and makes it difficult to “see” what candidates look like before applying them. If you frequently change fonts or align reading experiences across multiple machines, this plain text field slows down the adjustment process.

The following introduces the community plugin dsh-font-settings (maintainer: YiQiuAcc): it replaces the built-in font lines in the same settings page with searchable dropdown selectors and renders each row in the list using the corresponding font, facilitating selection based on appearance.

What is this?

dsh-font-settings is a DSH Web plugin (profile bundle) designed to replace the original font-related settings in Settings → General with searchable font selectors. The three roles—text, code, and terminal—are configured independently, and it can list locally installed fonts on demand.

The plugin does not bundle storage or stylesheets. It reads and writes via the Harness theme service (ctx.theme), sharing the same persistence and initial injection logic as the built-in font settings.

Core Features

Searchable Fonts and Sizes

  • Three Roles: Body (text), code, and terminal each have a font selector; a corresponding font size control is located next to each role.
  • Search & Keyboard: Focusing or typing opens the list; ↑/↓ cycle through options, Enter applies, Escape cancels, and clicking outside closes it.
  • Identify by Appearance: Each row in the list is rendered in the respective font family, so you don’t have to rely solely on names.
  • Free Input Supported: Names not in the list can be typed directly; Harness will normalize them (quoting family names, keeping generic families unquoted) and write to the field.
  • System Default: The first item in each list acts as a one-click clear override, reverting to the system default.

Local Font Directory

A button allows attempting to load fonts installed on the current machine (Chromium-based browsers expose the list via queryLocalFonts). If unsupported or permission is denied, the button explains the reason, and other functions remain available. The local directory only displays matching items after input filtering, rather than dumping the entire table at once.

UI Layout

By default, it collapses into a single line Font settings (with a chevron). This collapsed row summarizes the current body font to avoid making the General list too long. When installed and enabled, this group replaces the original built-in font group rows (by shadowing the same slot id, see mechanism explanation below).

Installation & Enablement

The plugin is installed as a profile bundle. You can use the Web sidebar Plugins page or the plugin_manager tool’s install_bundle (requires danger-full-access). The spec can be a Git URL, local path, or registry name.

Install from GitHub (Before installation, the manager verifies GitHub via git ls-remote; pnpm github: shorthand is also supported):

https://github.com/yiqiuacc/dsh-font-settings.git

Or:

github:yiqiuacc/dsh-font-settings

Link from Local Directory (Replace path with your absolute path):

link:<absolute path to this directory>

Install from Registry (Available after publication):

@styiqiu/dsh-font-settings

After installation, the bundle is enabled by default. Open Settings → General to see the Font settings line (or the expanded full group); the original built-in font group will no longer render separately.

Installation and execution occur under the permissions of the current DSH process. Before adding any community plugin, it is recommended to review the repository source code and MIT license yourself to ensure compliance with your security and compliance requirements.

Typical Usage

  1. Complete the bundle installation described above in Harness Web or Desktop and confirm it is enabled.
  2. Go to Settings → General and expand Font settings.
  3. Open the font fields for text / code / terminal respectively: type keywords to filter the list, use arrow keys to select and press Enter; or directly type custom family names in the input box.
  4. When referencing local fonts is needed, use the “Load local fonts” button; type a fragment of the family name in the filter box and select from the results (the local list has a row limit when displayed via filtering, see notes).
  5. Adjust the font size steppers next to each role; the range is constrained by Harness (text 10–22 px, code 10–16 px, terminal 10–20 px).

Selection and built-in settings are written to the same storage: the settings scope and the ui-theme configuration line in the profile’s cordis.patch.yml; the first screen is injected by the Harness boot script to avoid flashing the default font before switching.

How It Works (Briefly)

  • The client logic is centralized in client.js: It registers an item with the same id as the built-in font entry in the General area item slot with a lower priority than the built-in item. This shadows the built-in row, replacing it with a set of controls rather than appearing in parallel.
  • The UI uses Input, MenuSurface, and MenuGroup from @deepseek-ai/dsh-client-ui-primitives, maintaining consistency with Harness field geometry and focus behavior.
  • index.js is an empty mount shell (export function apply() {}), satisfying the Host plugin row requirement for profile bundles; there is no independent build step, and dependencies are provided by the client module loader.
  • If the theme service does not exist in the runtime environment, the plugin does not register any UI, and the built-in font settings remain unchanged.

Use Cases & Notes

Who is it for?

  • Developers or daily users who want to quickly try fonts in DSH and rely on “seeing before selecting.”
  • Scenarios requiring fine-tuning across the text / code / terminal stacks separately, and occasionally referencing locally installed fonts.

Known Limitations (from upstream README)

  • The local font list is displayed only upon filtering, with a maximum of 24 rows; curated lists are not subject to this limit. This is because each row is rendered in the actual font, and a large number of distinct families with a cold cache can cause significant lag.
  • This group appears above Appearance in General (caused by the shadowing mechanism and slot sorting; it cannot be removed without changing the replacement strategy).
  • It relies on the built-in entry id font-size; if Harness renames it in the future, shadowing will fail, resulting in duplicate controls coexisting with the built-in font row, but it will not crash.
  • There is no “sync monospace font replacement” toggle for the three roles; there is no separate preview block (the list row serves as the preview).
  • ctx.theme is a pre-stable API; you may need to update the plugin after upgrading Harness.
  • “Load local fonts” depends on Chromium-based browsers; other capabilities have no special requirements for the engine.

Conclusion

dsh-font-settings replaces the process of filling in font names from memory in General with a searchable, previewable list selector, maintaining consistency with Harness theme storage. If you are tweaking typography on DSH 0.2.x Web or Desktop, you can add the bundle via the community catalog or GitHub using the official README’s installation spec, then complete the configuration in Settings → General → Font settings.

  • Catalog Page: https://www.skillhub.cn/plugins/YiQiuAcc/dsh-font-settings
  • GitHub: https://github.com/YiQiuAcc/dsh-font-settings

The community plugin catalog is an independent site and is not officially affiliated with DeepSeek / High-Flyer; please refer to the repository documentation and source code for selection and installation.

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

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

Xiaoye