Skip to content
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

FontSize not working #6884

Closed
frostbitefalls opened this issue Jul 12, 2020 · 6 comments
Closed

FontSize not working #6884

frostbitefalls opened this issue Jul 12, 2020 · 6 comments
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@frostbitefalls
Copy link

frostbitefalls commented Jul 12, 2020

Environment

Windows 10 Pro, 10.0.18362.900

Steps to reproduce

Windows Terminal 1.0.1811.0 -- edit settings.json, add the line below with any quoted numbers to "defaults",
or to any profile, or both; save settings.json; any active tabs do not change, exit and restart Windows Terminal.

"fontSize" : "24"

(line ends with or without a trailing comma , as needed; no errors reported after saving settings.json and none after restart)

Expected behavior

Font size should change as directed

Actual behavior

Always the same default font size, never changes; same result with or without specifying any "fontFace".

note: ctrl-+ and ctrl-0 always work OK

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 12, 2020
@DHowett
Copy link
Member

DHowett commented Jul 12, 2020

You may need to remove the " around 24!

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 12, 2020
@frostbitefalls
Copy link
Author

frostbitefalls commented Jul 12, 2020

Too easy ;) About everything else requires quotes.
This item relates to early struggles with misleading error messages from additions to settings.json .
After the wakeup to drop quotes there's a mild surprise the parser or related code didn't gripe about them;
might be worth an enhancement, possibly reducing duplicates.
fontSize works OK, thanks.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 12, 2020
@DHowett
Copy link
Member

DHowett commented Jul 12, 2020

Yeah, we have a couple things coming that’ll make the parser more strict and the settings more obvious. #6590 is a pull request that unifies our JSON parsing around a couple type-checking helpers that’ll carp about things like this, and of course we have #1564 (spec: #6720) for the settings UI that’ll hopefully obviate the need for folks editing JSON.

Thanks for the feedback :)

@frostbitefalls
Copy link
Author

Excellent.
After seeing an options UI with mintty and the experience editing settings.json, I'd expect a UI for WT settings
will be welcomed. I'll add votes for options to set scrollbar color and a solid cursor! (eg rxvt).
FWIW, consider the wide dissent against the HTML tag <blink> and when that was dropped.

Meanwhile, thanks again.

@XilefNori
Copy link

XilefNori commented Jul 24, 2020

You should really make a check config on file save, and show user a message with setting name and problem if the setting cannot not apply! Not just silently discard it!

@DHowett
Copy link
Member

DHowett commented Jul 24, 2020

So, like this?

(quote from two comments above yours, from @DHowett)

Yeah, we have a couple things coming that’ll make the parser more strict and the settings more obvious. #6590 is a pull request that unifies our JSON parsing around a couple type-checking helpers that’ll carp about things like this, and of course we have #1564 (spec: #6720) for the settings UI that’ll hopefully obviate the need for folks editing JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

3 participants