FontSize not working #9574

Closed
opened 2026-01-31 01:58:07 +00:00 by claunia · 6 comments
Owner

Originally created by @frostbitefalls on GitHub (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

Originally created by @frostbitefalls on GitHub (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
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:58:07 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 12, 2020):

You may need to remove the " around 24!

@DHowett commented on GitHub (Jul 12, 2020): You may need to remove the `"` around `24`!
Author
Owner

@frostbitefalls commented on GitHub (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.

@frostbitefalls commented on GitHub (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.
Author
Owner

@DHowett commented on GitHub (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 :)

@DHowett commented on GitHub (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 :)
Author
Owner

@frostbitefalls commented on GitHub (Jul 12, 2020):

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.

@frostbitefalls commented on GitHub (Jul 12, 2020): 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.
Author
Owner

@XilefNori commented on GitHub (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!

@XilefNori commented on GitHub (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!
Author
Owner

@DHowett commented on GitHub (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.

@DHowett commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9574