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
Should terminal font honor user's Monospace choices in the browser? #1317
Comments
IIUC this is a matter of setting jupyterlab/src/terminal/index.css Line 18 in 23e4bfe
cc @cameronoelsen, thoughts on this? |
@blink1073 @fperez How many users have a monospace font preference for terminals? Like the only way I would see this being incorporated would be in the top menus in the terminal settings. I just don't know how many users would use it |
No, the point is that users are likely to have their browser-wide monospace font selected, and we should honor that. Right now, by having explicit choices in advance, it seems that if those aren't found, the default user's choice gets overridden. At least that's what I'm observing on OSX with Chrome 54: I have menlo as my monospace font, but instead at the terminal I'm getting something else that looks hideous. I don't have DejaVu Sans Mono available, so it seems that Chrome, instead of falling back to my monospace choice, is instead picking some internal fallback (Courier New, I think). I know this is a tricky one, perhaps you prefer to provide actual JLab-specific customization. I'm thinking of having a reasonable fallback for the folks at large who won't look into customizing JLab specifically but simply set their browser preferences once and forget about it everafter. |
Yup, just to confirm that the small change suggested by @blink1073 does the trick. See here, current master at the top, with the change at the bottom: Now, looking at the code makes me wonder why that If so, I'm happy to make the (trivial, obviously :) cleanup PR... |
Found where it came from, though I don't know what my original logic was (other than Googling about how to set a monospace font), I'll open the PR to fix it. jupyter/jupyter-js-terminal@c8f3210#diff-b3c787053edaeedadf1a2430f41506f2 |
Great, thx! |
I know full-blown font/theme terminal customization is a can of worms, but I wonder if allowing at least the terminal component to honor the user's choice of monospace font in the browser makes sense. I just tried and it didn't have any impact, at least on Chrome on OSX.
My rationale is that we can imagine the user has chosen a mono font they otherwise like and that works well for them in general, so giving them that baseline may do the 80/20 job on this issue...
Thoughts?
The text was updated successfully, but these errors were encountered: