Skip to content

fix(app): support comma-separated font family input - #50350

Closed
Veld101 wants to merge 2 commits into
anomalyco:devfrom
Veld101:fix-multi-font-input
Closed

Veld101 wants to merge 2 commits into
anomalyco:devfrom
Veld101:fix-multi-font-input

Conversation

@Veld101

@Veld101 Veld101 commented Sep 21, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #12503
Closes #12605

Type of change

  • Bug fix

What does this PR do?

Support comma-separated font family input in settings (e.g., Consolas, KaiTi).

Previously, entering Consolas, KaiTi would be treated as a single font name and wrapped in quotes, making it invalid CSS. Now the input is split by commas and each font name is processed independently.

Also fixes fontSize not being applied to the DOM — it was stored in settings but never written to the --font-size-base CSS variable.

How did you verify your code works?

  1. Typed Consolas, KaiTi in the code font setting → inspected --font-family-mono CSS variable → confirmed it outputs Consolas, KaiTi, ui-monospace, ...
  2. Typed single font Consolas → still works correctly
  3. Typed Chinese font name 楷体 → correctly wrapped in quotes "楷体"
  4. Confirmed --font-size-base CSS variable now updates when fontSize setting changes

Screenshots / recordings

Not a visual UI change — behavior verified via CSS variable inspection.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@Veld101

Veld101 commented Sep 28, 2026

Copy link
Copy Markdown
Author

Superseded by #50801 on �2. dev is not where merges land (recent merges are overwhelmingly into v2), so this fix is carried in the v2 PR instead. Closing to keep the queue focused; reopen or cherry-pick from that branch if needed.

@Veld101 Veld101 closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop app: font selection doesn't work reliably (ghostty-web font loading) [FEATURE]: Add font customization support to opencode.json config

1 participant