Title: Support Serving Fonts from the Server to Client · Issue #7557 · coder/code-server · GitHub
Open Graph Title: Support Serving Fonts from the Server to Client · Issue #7557 · coder/code-server
X Title: Support Serving Fonts from the Server to Client · Issue #7557 · coder/code-server
Description: Description First, thank you for the incredible work on code-server. It's an essential tool for many of us. I would like to respectfully request a feature to improve font handling. Currently, the fonts specified in the user's settings.js...
Open Graph Description: Description First, thank you for the incredible work on code-server. It's an essential tool for many of us. I would like to respectfully request a feature to improve font handling. Currently, the f...
X Description: Description First, thank you for the incredible work on code-server. It's an essential tool for many of us. I would like to respectfully request a feature to improve font handling. Currently, t...
Opengraph URL: https://github.com/coder/code-server/issues/7557
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support Serving Fonts from the Server to Client","articleBody":"### Description\n\nFirst, thank you for the incredible work on code-server. It's an essential tool for many of us.\n\nI would like to respectfully request a feature to improve font handling. Currently, the fonts specified in the user's `settings.json` must be installed locally on the client machine. If the font is not available locally, it falls back to a default font, which can disrupt the intended coding experience.\n\nThis is a common hurdle, especially when switching between different computers (work, home, etc.) or when working in a team where a consistent font is desired.\n\n### Proposed Solution\n\nIt would be a significant quality-of-life improvement if code-server could serve font files from the server to the client.\n\nThe ideal behavior would be:\n1. A user specifies a font (e.g., `\"Fira Code\"`) in their `settings.json`.\n2. The client attempts to use its local copy.\n3. **If the font is not found locally, the client automatically requests it from the code-server instance.**\n4. The server, if it has the font file available in its environment, serves it to the client, which then uses it for rendering.\n\nThis would ensure a consistent visual experience regardless of the client device's local font library.\n\n### Use Cases\n* **Individual Developers:** Use your preferred patched font (like a Nerd Font) on any machine without manual installation.\n* **Team Collaboration:** Ensure all team members see the same font in a shared development environment.\n* **Educational Settings:** Teachers can provide a standardized setup with specific fonts for students.\n\n### Implementation Considerations\n* A new endpoint (e.g., `/assets/fonts/\u003cfont-name>`) could be added to serve font files.\n* The feature could initially focus on fonts present in the server's filesystem (e.g., in `/usr/share/fonts`).\n* For performance and privacy, the server would only serve fonts that are explicitly available in its own environment and not fetch them from the internet.\n\n### Alternatives Tried\nI have tried to find a solution by:\n* Configuring font fallbacks in `settings.json`.\n* Searching through existing documentation and closed issues.\n* Attempting to inject custom CSS, but this is a workaround and not a integrated solution.\n\nUnfortunately, I haven't found a built-in way to achieve this.\n\n### Additional Context\nThis feature would bring the font experience in code-server closer to that of a local VS Code installation, where the expectation is that the set font \"just works.\" It would be a fantastic step forward in improving user consistency and satisfaction.\n\nThank you for your time and consideration. I would be happy to provide more details or help test this feature if it moves forward.","author":{"url":"https://github.com/ZhaiXinZheCode","@type":"Person","name":"ZhaiXinZheCode"},"datePublished":"2025-11-09T03:04:54Z","url":"https://github.com/coder/code-server/issues/7557"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89541e7c-ee92-1bab-fe92-d4bdf634e371 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D854:38EE04:A3C38F:D8D600:6B01BA43 |
| html-safe-nonce | 60bd674f7686e88897253da23dfe17fecda22181ba55a2067b9126cae9912906 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODU0OjM4RUUwNDpBM0MzOEY6RDhENjAwOjZCMDFCQTQzIiwidmlzaXRvcl9pZCI6IjcwNzQ3MTY0OTE2NDM0NjgzNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 65d49921e488a62362bf58f90c08a9ae7af91edd29e35e30cb7997507fb74f8a |
| hovercard-subject-tag | issue:3604393898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/7557/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88a8b4839b5ee73b9ffe90c5fca9078117b8902904884d2a7248e5d21b0cc781/coder/code-server/issues/7557 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88a8b4839b5ee73b9ffe90c5fca9078117b8902904884d2a7248e5d21b0cc781/coder/code-server/issues/7557 |
| og:image:alt | Description First, thank you for the incredible work on code-server. It's an essential tool for many of us. I would like to respectfully request a feature to improve font handling. Currently, the f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZhaiXinZheCode |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width