-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add a warning to the proportional font selector #13389
Comments
You appear to be using a proportional font in your terminal. This is not a supported configuration, and is why non-monospace fonts are hidden by default. :) |
ah! i did not realise. thanks! |
No problem! We should actually add a warning! Thanks for bringing this to our attention. If it seems weird that we offer a "break my terminal" checkbox that lets you select bad fonts, it is to work around a problem where a good font is mis-identified (by the OS) as an invalid monospace font. |
@jamespack Hope you don't mind me saying, but this one feels kinda up the same alley of some of the other stuff you've been helping with 😉 |
Don't mind at all. Happy to PR it |
That's the one. I'm looking through the settings app now to see if there's some precedent for like, a Warning InfoBar (within a Expander) if you choose a weird compatibility setting. Just for some UX precedent. |
That's literally exactly what I imagined. I'd put it underneath (but I'm no UX designer), and yea strings in the resources. You sure whipped that up quick 😛 |
Think I got everything where it needs to be. If that is not quite what you had in mind or I missed something let me know. :) |
## Summary of the Pull Request Add an infobar warning when a non-monospaced font is selected. ## References and Relevant Issues #13389 ## Detailed Description of the Pull Request / Additional comments I initially had the `IsOpen` property of the infobar bound to the `ShowAllFonts` checkbox property. However, I felt we could do better by adding a property for it since there was already a method defined to inspect whether the selected font was in the `MonoSpaceFontList`. ## Validation Steps Performed Warning shows up when a non-monospaced font is selected either globally or on individual profiles. All existing tests continue to pass. <img width="868" alt="image" src="https://user-images.githubusercontent.com/2086722/232594214-cd42397b-ce9d-499c-aa73-3feaa45e850e.png"> ## PR Checklist - [x] Closes #13389 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
## Summary of the Pull Request Add an infobar warning when a non-monospaced font is selected. ## References and Relevant Issues #13389 ## Detailed Description of the Pull Request / Additional comments I initially had the `IsOpen` property of the infobar bound to the `ShowAllFonts` checkbox property. However, I felt we could do better by adding a property for it since there was already a method defined to inspect whether the selected font was in the `MonoSpaceFontList`. ## Validation Steps Performed Warning shows up when a non-monospaced font is selected either globally or on individual profiles. All existing tests continue to pass. <img width="868" alt="image" src="https://user-images.githubusercontent.com/2086722/232594214-cd42397b-ce9d-499c-aa73-3feaa45e850e.png"> ## PR Checklist - [x] Closes #13389 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary) (cherry picked from commit 2c16543) Service-Card-Id: 89001996 Service-Version: 1.17
Windows Terminal version
1.13.11431.0
Windows build number
10.0.19044.1766
Other Software
No response
Steps to reproduce
Open the program
Expected Behavior
Cursor on text at point of editing
Actual Behavior
Cursor is way off of where I am editing
The text was updated successfully, but these errors were encountered: