Cell height not consistent #23218

Closed
opened 2026-01-31 08:35:39 +00:00 by claunia · 7 comments
Owner

Originally created by @vefatica on GitHub (May 1, 2025).

Here are the settings for my default profile (first) and another similar profile.

Image

Image

And here are the two, in action, side by side (default profile on the left with the preferred appearance).

Image

Why is the line spacing different?

FWIW, here are the two JSON entries.

            {
                "bellStyle": 
                [
                    "audible",
                    "window"
                ],
                "closeOnExit": "always",
                "colorScheme": "Campbell",
                "commandline": "d:\\tc34\\tcc.exe",
                "cursorHeight": 15,
                "font": 
                {
                    "face": "Consolas",
                    "size": 13
                },
                "guid": "{4f4f6c96-a91f-45dc-9757-4d7e40f053e4}",
                "hidden": false,
                "icon": "u:\\icons\\tccicon1.ico",
                "name": "TCC34",
                "scrollbarState": "visible",
                "startingDirectory": "v:\\",
                "tabTitle": null
            },
            {
                "bellStyle": 
                [
                    "audible",
                    "window"
                ],
                "closeOnExit": "always",
                "colorScheme": "Campbell",
                "commandline": "d:\\tc35\\tcc.exe",
                "cursorHeight": 15,
                "cursorShape": "vintage",
                "font": 
                {
                    "cellHeight": "1.2",
                    "cellWidth": "0.6",
                    "face": "Consolas",
                    "size": 13,
                    "weight": "normal"
                },
                "guid": "{5486a1c5-a6ca-4b38-a69f-c1752ebc5a69}",
                "hidden": false,
                "icon": "U:\\Icons\\tcmd.ico",
                "name": "TCC35",
                "scrollbarState": "visible",
                "startingDirectory": "v:\\",
                "tabTitle": null
            },

Originally created by @vefatica on GitHub (May 1, 2025). Here are the settings for my default profile (first) and another similar profile. ![Image](https://github.com/user-attachments/assets/f0b01217-c920-4f0e-ac9e-8b7565b7f688) ![Image](https://github.com/user-attachments/assets/a0d06631-6a16-4b3a-9f1d-517eb9b33307) And here are the two, in action, side by side (default profile on the left with the preferred appearance). ![Image](https://github.com/user-attachments/assets/04b993f5-dd7c-4431-b9e6-94d6330dc471) Why is the line spacing different? FWIW, here are the two JSON entries. ``` { "bellStyle": [ "audible", "window" ], "closeOnExit": "always", "colorScheme": "Campbell", "commandline": "d:\\tc34\\tcc.exe", "cursorHeight": 15, "font": { "face": "Consolas", "size": 13 }, "guid": "{4f4f6c96-a91f-45dc-9757-4d7e40f053e4}", "hidden": false, "icon": "u:\\icons\\tccicon1.ico", "name": "TCC34", "scrollbarState": "visible", "startingDirectory": "v:\\", "tabTitle": null }, { "bellStyle": [ "audible", "window" ], "closeOnExit": "always", "colorScheme": "Campbell", "commandline": "d:\\tc35\\tcc.exe", "cursorHeight": 15, "cursorShape": "vintage", "font": { "cellHeight": "1.2", "cellWidth": "0.6", "face": "Consolas", "size": 13, "weight": "normal" }, "guid": "{5486a1c5-a6ca-4b38-a69f-c1752ebc5a69}", "hidden": false, "icon": "U:\\Icons\\tcmd.ico", "name": "TCC35", "scrollbarState": "visible", "startingDirectory": "v:\\", "tabTitle": null }, ```
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 08:35:40 +00:00
Author
Owner

@DHowett commented on GitHub (May 1, 2025):

You set a cellHeight on one of them...

@DHowett commented on GitHub (May 1, 2025): You set a `cellHeight` on one of them...
Author
Owner

@DHowett commented on GitHub (May 1, 2025):

The default of 1.2 is "roughly" correct. It is not always correct for all fonts. It is a best guess. :)

@DHowett commented on GitHub (May 1, 2025): The default of 1.2 is "roughly" correct. It is not always correct for all fonts. It is a best guess. :)
Author
Owner

@vefatica commented on GitHub (May 1, 2025):

Yes I did. I recently messed with those numbers (in Settings) for the TCC35 profile and then set them to match the TCC34 profile. Are you saying that if the 1.2 shows in Settings but not in the JSON file, it may not be exactly what I get?

@vefatica commented on GitHub (May 1, 2025): Yes I did. I recently messed with those numbers (in Settings) for the TCC35 profile and then set them to match the TCC34 profile. Are you saying that if the 1.2 shows in Settings but not in the JSON file, it may not be exactly what I get?
Author
Owner

@DHowett commented on GitHub (May 1, 2025):

Er. I had assumed you set 1.2 based on the explanation in the settings page about how it's generally roughly that value for most fonts.

If you want to return to the actual default value, just delete it from your settings file or click the ↩️ button.

It may still say "1.2" in the settings, but the explanation should explain that. That's just a placeholder value.

@DHowett commented on GitHub (May 1, 2025): Er. I had assumed you set 1.2 based on the explanation in the settings page about how it's generally roughly that value for most fonts. If you want to return to the actual default value, just delete it from your settings file or click the ↩️ button. It may still say "1.2" in the settings, but the explanation should explain that. That's just a placeholder value.
Author
Owner

@DHowett commented on GitHub (May 7, 2025):

Gonna close this one out as it seems resolved. Let us know if that's not the case! Thanks!

@DHowett commented on GitHub (May 7, 2025): Gonna close this one out as it seems resolved. Let us know if that's not the case! Thanks!
Author
Owner

@vefatica commented on GitHub (May 7, 2025):

It's not very important but can't the actual value in use be shown in the settings?

@vefatica commented on GitHub (May 7, 2025): It's not very important but can't the actual value in use be shown in the settings?
Author
Owner

@DHowett commented on GitHub (May 7, 2025):

No. We aren't going to crack the font and re-derive those values (PER DISPLAY) just to show an accurate placeholder.

If you want the actual value to be used, leave it unset. If you want the actual value to be seen, derive it for your own display DPI, screen size, font size and font.

@DHowett commented on GitHub (May 7, 2025): No. We aren't going to crack the font and re-derive those values (PER DISPLAY) just to show an accurate placeholder. If you want the actual value to be used, leave it unset. If you want the actual value to be _seen,_ derive it for your own display DPI, screen size, font size and font.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23218