-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
On Windows Chrome, font-family: monospace; won't show as monospace font #17966
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
Comments
Hi @CNOCTAVE! 👋 It looks like you provided an invalid or unsupported reproduction URL. Without a proper reproduction, your issue will have to get closed. Thank you for your collaboration. 👏 |
@CNOCTAVE you can check actual rendered font in inspector in "computed" tab: |
The actual rendered font is NSimSun. |
BTW Consolas font is avaliable on Windows too. Maybe Quasar can use Consolas, monospace instead of monospace. |
Default is "default system font". In all my chrome installations in windows default value for monospace font is Consolas, may be in chinese version it has another value. IMHO quasar behavior is correct, just change your settings to real monospace font (i.e. Consolas). NSimSun is not monospace font, so you may have same issue on other sites with unstyled pre or code tags. |
Your workaround sounds perfect, but web developer cannot force users changing their Chrome settings. |
If you sure, that your setting is real default setting and wasn't set by user, with group policies/script, etc. as workaround - you can add style for |
Yes, in that picture u can see the glyphs of the "Default" setting is NSimSun, which is not a monospace font. |
Since Chrome can explicitly specify MacOS fonts e.g. -apple-system, it definitely can explicitly specify monospace font e.g. Consolas as Windows workaround. |
What happened?
On Windows Chrome, font-family: monospace; won't show as monospace font.
What did you expect to happen?
Change to font-family: courier, monospace; will be a good workaround.
Reproduction URL
http://cnoctave.cn/1/2.html
How to reproduce?
Visit http://cnoctave.cn/1/2.html
Flavour
UMD
Areas
Style & Identity (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: