-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Several CJK strings on the UI are very difficult to read on standard definition monitors due to font weight and size #8653
Comments
If this can be fixed by tweaking our CSS with some rules for CJK, we are good. Otherwise the bigger story is to support setting font from a setting. Moving to Brad first to see if we can fix this with some CJK CSS rules in the same way we do it here https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/electron-browser/media/shell.css#L20 |
How about something like this? :root {
--title-scale: 1em;
}
.monaco-shell:lang(zh-Hans),
.monaco-shell:lang(zh-Hant),
.monaco-shell:lang(ja),
.monaco-shell:lang(ko) {
--title-scale: 1.2em;
}
.tiny-titles {
font-size: var(--title-scale);
} |
@Tyriar that's a cool way of making it bigger with CSS custom properties. @bpasero if you don't want to go that route, here is some regular CSS that would be equivalent.
Or a SASS approach, which works great if there a lot of other places that need to be addressed.
|
I am very afraid of making such a change without sufficient feedback and testing from our CJK users. We never got this complaint from those users, so I would wait for sufficient number of people to complain. As a reference, where I felt confident of doing a change: #5260 Maybe just get in contact with them to get an idea how bad it is. We should not just fix CJK issues because we think they are issues for CJK users. |
If English was that blurry and unreadable on the UI it would be a bug and an accessibility issue. Given the context, a user may know what it says naturally, but the text itself should be readable as a minimum for the sake of low-vision users. Also note that I can read Korean and basic Japanese and it's difficult/impossible to make out these characters. I cc'd @rebornix to get his thoughts on it too since he speaks Chinese. |
I wonder if in the end it would not be better to invest in a solution where the user can configure these things, either via settings or by being able to write CSS that gets injected. |
I am a Chinese user. |
Today in UX sync, we agreed to let this issue sit for a little bit to gather feedback from the community and to see if this affecting our users widely. @Tyriar can you demonstrate with a GIF or some other instructions on how to change the font-size in Developer Tools for anyone interested in trying larger font sizes? |
👍 for asking feedback from CJK users. #5260 has a good list of people. |
Here is my two cents:
Besides, there are two issue related to Chinese Fonts |
@rebornix looks like you're on a retina display too, so it is a lot better than a standard scale one, also the fonts selected probably differ across platforms, I was showing the one on Ubuntu. |
@Tyriar that's true, retina makes it better. If I plug in another Monitor with no 4k resolution, the characters are showing not that good. Look at |
We did quite some tweaking on the selected font via #5260, I am surprised to hear that we still have font issues (related to the font family)? |
@bpasero let me correct my words, the fallback sequence of font-family with normal font-weight is perfect. From what I observe, the font-family that takes effect on a clean OSX is Hiragino Sans GB, but with bold font-weight, it looks worse than Helvetica or sans-serif. I'm not a Font expert so it may be just a weight issue :) |
#5260 was about using the right glyphs for the right locale, not about optimizing for legibility. |
@rebornix Perhaps the fallback sequence can be improved into:
(preserving the current Windows — Mac — Linux sequence) Perhaps @Tyriar can consider using weights like 600 to select a slightly thinner variant on CJK locales. |
@Tyriar |
@be5invis My OS is OSX 10.10.5 and yes I've Office 2010 for Mac installed. The funny thing is the Font Family that takes effect is |
UX Meeting Summary: This occurs in only a few places. This should solve the issue for many people. It’s possible those with lower-dpi monitors or other factors (potentially operating systems with different fonts or font-rendering algorithms) will need us to take an additional step. We can make this initial change on Insiders build and leave the issue open for further feedback. We then can take further action, if needed from there. |
--locale=zh-CN
bold in debug panel headings:--locale=ko
output panel title (it is 출 but it's awfully close to 춤 and 춥):/cc @dbaeumer @bpasero @rebornix
The text was updated successfully, but these errors were encountered: