Skip to content

[Feature Request]: Add font size & font family options (English + CJK) in Desktop GUI #155

Closed

Description

@lidao2026-Coding

Is your feature request related to a problem?

Yes. The Desktop GUI has no font customization at all — font size is fixed and there is no way to choose a font. For a coding tool whose UI is dominated by text (conversation, code, diffs, terminals), this hurts readability:

  • Font size: On high-DPI Windows displays the default size is too small to read comfortably; on some setups it is too large.
  • Font family: There is no option to pick a preferred font. English UI benefits from monospace/humanist fonts (e.g. Cascadia Code, JetBrains Mono, Inter), while Chinese users often want a specific CJK font (e.g. Microsoft YaHei, Noto Sans SC, Sarasa Mono SC) for mixed Chinese/English text — the default fallback is often inconsistent.

Describe the solution you'd like

Add a Fonts & Size section under Settings → Appearance:

  1. Font size: A slider or numeric input (e.g. 12–24 px) controlling UI font size, with live preview and persistence.
  2. Font family (English): A dropdown of common fonts — e.g. Inter, Segoe UI, JetBrains Mono, Cascadia Code, Fira Code — plus an "custom font family" text field for power users.
  3. Font family (Chinese/CJK): A separate dropdown for CJK fonts — e.g. Microsoft YaHei, PingFang SC (macOS), Noto Sans SC, Sarasa Mono SC — applied via the CSS font-family fallback chain so mixed Chinese/English text renders consistently.
  4. Optional: separate monospace font setting for code blocks / terminal panes (already partially used via Monaco/xterm), so users can match their editor fonts.

The implementation is a lightweight CSS-variables + font-family/font-size mapping in desktop/src/**; no backend change is required.

Describe alternatives you've considered

  • A single "font size" zoom toggle (Ctrl +/-) — quick win but no font selection.
  • Letting users edit a CSS override file — flexible but not beginner-friendly.

Additional context

  • Platform: Windows 11, 2560×1440 display (high-DPI).
  • VS Code users are used to editor.fontFamily/editor.fontSize; matching this mental model makes adoption easier.
  • Version: DeepCode Desktop 0.1.0 (v2.0.0 runtime).

Activity

  1. Zongwei9888 commented on Aug 6, 2026

    @Zongwei9888
    Contributor

    Thanks — implemented across #161 and #162. Settings → Appearance now has font size (11–22px) plus font selection.

    A note on how the font part landed, since it took two passes: the first attempt offered free text only, because a fixed dropdown would be guessing at what's installed on your machine. That reasoning was half right — we could simply ask the browser. #162 adds a picker that lists only the fonts actually present on your system, grouped into Interface / Monospace / CJK.

    Selecting one adds to the field rather than replacing it, which handles your English/CJK point nicely: list your preferred CJK face alongside a Latin one and mixed text renders through a single consistent fallback. You can still type anything not in the list, and any font you don't have is simply skipped.

  2. Zongwei9888 commented on Sep 28, 2026

    @Zongwei9888
    Contributor

    Closing this as complete — everything the request asked for is now in main. Thank you @lidao2026-Coding, the English + CJK framing shaped how the font picker works.

    If a font you have installed does not show up in the list, you can still type its name; a new issue with the font name and your OS would help us improve the suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions