-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use some Noto fonts on Windows in Visual Studio Code #9
Comments
Could this be related to #10? I noticed that most of the fonts "look the same" when trying to change them in VSCode, but it could also be that the font isn't actually changing when I set it. |
@raghuvanshr not 100% sure, I saw and read through the issue but feels different because despite what Windows shows in #10 I can use the font - that is, if the particular variant has a short name. I even tried downloading the previous (2019) version because it was mentioned somewhere that font tooling was changed - that also did not help. |
Did a quick test under Visual Studio Code (Windows 10, 1.64.0) to see if there might be an issue with the configuration parser, however it does not truncate font names:
This is output from a simple TypeScript extension: const config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration('editor');
const fonts = config.get('fontFamily');
console.log(fonts); This leads me to believe it is not a Visual Studio Code issue. Just checked with LibreOffice Writer on Windows as well, a font such as e.g. Wordpad also suffers from this (apologies for the transparency, it fades away when noticing any keystrokes): The default Windows 10 Font Settings seems to parse the data differently. It recognises After some digging I am pretty sure this is because some applications use the GDI
So if an application uses the string you provided to fill in |
@ashemedai I think it is hitting some Windows API limitation, the tool I have returns the short names, and I already excluded as a root cause the font tooling (updated in 2019). FWIW, I think for best compatibility seems like the solution for this issue may be to keep all font names at or under 31 characters. |
Defect Report
Unable to use some Noto fonts on Windows in Visual Studio Code
Font
Seemingly the ones that have long names (e.g. Noto Sans Mono SemiCondensed Medium)
Where the font came from, and when
Google Fonts, 2021-12-06
Font Version
2.006
OS name and version
Windows 10 Pro, 10.0.19043
Application name and version
Visual Studio Code 1.62.3
Issue
settings.json
Noto Sans Mono SemiCondensed
- this should be okNoto Sans Mono SemiCondensed Light
- not changedDetails
Noto Sans Mono SemiCondensed Li
, which matches what Visual Studio Professional lists underTools > Options > Fonts and colors
31
charactersThe text was updated successfully, but these errors were encountered: