Skip to content

[Bug]: Terminal font family picker truncates installed font list #7573

Closed

Description

@duolanda

Problem

The terminal font family dropdown in Settings does not show the full list of installed system fonts. On Windows, the dropdown appears to stop partway through the system font list; fonts sorted after that point cannot be found or selected from the picker.

Image

Reproduction

  1. Use a machine with more than 320 installed font families.
  2. Open Settings > Appearance > Terminal.
  3. Open the Font Family dropdown.
  4. Search or scroll for a font whose family name sorts after the first 320 system font entries.

Expected

All installed font families returned by the system font loader should be searchable/selectable in the terminal font picker.

If the UI needs to cap rendered rows for performance, the cap should apply only to visible/rendered results, not to the backing source array used for search.

Actual

The renderer truncates the merged font suggestion array to 320 items during settings font hydration:

setFontSuggestions((prev) =>
  Array.from(new Set([DEFAULT_APP_FONT_FAMILY, ...fonts, ...prev])).slice(0, 320)
)

Relevant code:

  • src/renderer/src/components/settings/Settings.tsx: loads window.api.settings.listFonts() and truncates the merged suggestions with .slice(0, 320).
  • src/main/system-fonts.ts: enumerates and sorts installed fonts per platform.
  • src/main/ipc/settings.ts: exposes settings:listFonts by returning listSystemFontFamilies() directly.

So the missing fonts are likely dropped in the renderer after IPC returns successfully, not during main-process font enumeration.

Suggested Fix

Keep the complete merged font list in state and avoid truncating it at hydration time.

If rendering a very large dropdown is a concern, preserve the full source list for filtering/search, then cap or virtualize only the displayed rows:

  • source list: complete installed fonts
  • empty dropdown view: optionally limited/virtualized
  • typed search: filters against the complete source list

Activity

  1. AmethystLiang commented on Jul 6, 2026

    @AmethystLiang
    Contributor

    will fix this asap

  2. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions