-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Warn users if the terminal font is not monospace #45226
Comments
@Tyriar I would really like to help on this one has my first issue on vscode repo. |
@RubenMateus that would be great! To give you some pointers, there is an element used for measuring characters here: I see this as a new function on |
@Tyriar have there been any developments on this issue? I'd love to take a look! |
@jay-khatri not yet, go for it 😃 |
@Tyriar I took a look and wanted to clarify. I understand that the point of this is to confirm whether or not a font is monospace. With that being said, am I expected to render an actual html element and measure the difference among two separate letters (eg. in pixels)? I'm now pretty familiar with the code organization, just a little confused as to how to approach measuring the font 🙂 |
Ping @Tyriar 😬 🙂 |
@jay-khatri yes, by utilizing |
#48028 adds the following notification when the terminal font is changed: |
Attempts to make described workaround from issue #45226
Works, but I don't see the notification if I have the terminal closed, then change the font setting, then open the terminal. I think it should be shown in that case too. |
When warning the user about non-monospace font, the notification lacks context. This PR addresses that by giving user a bit more context about what went wrong. For Issue microsoft#45226
@rebornix any ideas on whether the editor has something to leverage here? Basically I need some element to measure the width of |
I'm toying with the idea of supporting this in xterm.js by specifying a Ping @rebornix |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
As a workaround for #35681, we could measure characters, maybe
i
andw
and tell the user to use a monospace font if they differ.The text was updated successfully, but these errors were encountered: