You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should ChromeOS be considered Linux (for fonts at least)? #247766
I was looking into a fonts issue a ChromeOS user was having and noticed that their default font setting is Consolas which surprised me as I thought for Linux it should be Droid Sans Mono.
And secondly, is falling back to Windows for an unrecognised OS the best option? Would Linux have more compatibility with more unknown OSs?
I guess detecting windows should be quite reliable, and if detection fails, it is probably a linux based system, so changing the fallback sounds reasonable.
After testing this a bit, we have noticed that detecting ChromeOS as Linux would cause the UI to use the Ubuntu font as for some reason ChromeOS does not provide a system-ui font.
We'll investigate this further on our side - but perhaps the best approach would be to treat ChromeOS as a completely separate OS and offer an isChromeOS flag?
Thanks for the context. The editor-font fallback was changed in 146b12c: ChromeOS and other non-Mac, non-Windows platforms now use the Linux editor-font defaults rather than Consolas. Your later suggestion to detect ChromeOS separately is also implemented in cf84cd4, which adds the isChromeOS platform flag and context key without treating ChromeOS as Linux. Together these address both parts of this discussion, so this can be closed as completed. The fix shipped in 1.138.0.
This issue was closed automatically: the fix shipped in 1.138.0, proposed by the VS Code sweeper and confirmed by an independent second review. It is closed as "not planned" rather than "completed" only because a "completed" close would put this already-shipped fix back into the current milestone's verification queue. If it still reproduces on 1.138.0 or later, reply here or reopen the issue and a maintainer will take a look.
Activity
hediet commentedon Apr 30, 2025
I guess detecting windows should be quite reliable, and if detection fails, it is probably a linux based system, so changing the fallback sounds reasonable.
a-stewart commentedon May 5, 2025
Created #248133 to fallback to Linux fonts instead. I didn't see any obvious similar situations from a quick check.
Created #247766 to update the user agent detecting for Linux to also include Chrome OS.
a-stewart commentedon May 22, 2025
Benjamin Pasero (@bpasero) fyi as the reviewer of #248134
After testing this a bit, we have noticed that detecting ChromeOS as Linux would cause the UI to use the Ubuntu font as for some reason ChromeOS does not provide a
system-uifont.We'll investigate this further on our side - but perhaps the best approach would be to treat ChromeOS as a completely separate OS and offer an
isChromeOSflag?vs-code-engineering commentedon Nov 12, 2026
Thanks for the context. The editor-font fallback was changed in 146b12c: ChromeOS and other non-Mac, non-Windows platforms now use the Linux editor-font defaults rather than Consolas. Your later suggestion to detect ChromeOS separately is also implemented in cf84cd4, which adds the isChromeOS platform flag and context key without treating ChromeOS as Linux. Together these address both parts of this discussion, so this can be closed as completed. The fix shipped in 1.138.0.
This issue was closed automatically: the fix shipped in 1.138.0, proposed by the VS Code sweeper and confirmed by an independent second review. It is closed as "not planned" rather than "completed" only because a "completed" close would put this already-shipped fix back into the current milestone's verification queue. If it still reproduces on 1.138.0 or later, reply here or reopen the issue and a maintainer will take a look.