terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Cell height not consistent

Open vefatica opened this issue 6 months ago • 4 comments

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
            },

vefatica avatar May 01 '25 02:05 vefatica

You set a cellHeight on one of them...

DHowett avatar May 01 '25 02:05 DHowett

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

DHowett avatar May 01 '25 02:05 DHowett

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 avatar May 01 '25 02:05 vefatica

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 avatar May 01 '25 03:05 DHowett

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

DHowett avatar May 07 '25 19:05 DHowett

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

vefatica avatar May 07 '25 19:05 vefatica

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 avatar May 07 '25 20:05 DHowett