-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add preference to customize vertical line spacing #3498
Comments
I think the top left line spacing is very readable, and preferable. As long as the box and block drawing characters line up properly without gaps, then that is good. Now if you are saying there should be an option to adjust the line spacing - again as long as box drawing characters line up properly - then sure add line spacing as an option. |
Thanks for the suggestion! I could have sworn there was already an issue for this, but it looks like it was only ever mentioned as a part of #1790 (and other threads), but never tracked individually. This is now the thread for configurable line height / spacing. Thanks! |
nope, no display scaling going on. just too much line spacing. you can see it in all the screenshots, too. so it's not just me. |
Ah, ok. Fair. I just figured it might have something to do with that. But yea, I agree that there's too much line spacing, regardless of display scaling settings. |
It is exciting to see MS create a new terminal. Great work, I appreciate it. +1 for the option to reduce spacing. Not a fan of reading double spaced lines and prefer smaller font too. Much more data can be presented in the given space. Linux and Mac don't have such wide spacing and large fonts by default. |
btw: you can use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I prefer taller, actually I want more taller. An option for line height (line spacing) is really good. |
@zadjii-msft is an option to configure the "lineHeight" still something we'd be interested in including? If so, I'd be interested in having a go at implementing this :) |
Does Windows Terminal draw it's own Box Drawing characters, I know it was proposed #5897 #455 If so, many of these will need to be adjusted to retain seamless lines and borders. But Full Block heights, should probably stay aligned to the text lines. |
Throwing this in here, and I haven't seen anyone else make this argument: getting consistent cell width and height is hard to do across programs (different font engines, different interpretations of width and height, round up or to nearest, etc): just do what every other good terminal does, allow an signed offset to the calculation. |
Bumping to say I was surprised as a user to not find this setting. it seems completely dependent on the font you're using right now. |
Well, good news! We're significantly moving up the timeframe for this feature thanks to the new text rendering engine :) |
I've implemented a version of line height customization in https://github.com/microsoft/terminal/tree/dev/lhecker/3498-line-heights. I'm proposing the following:
I'm not particularly happy about the design of the 3rd point and I'd be happy to hear suggestion how to better specify it. I'm not intending to write a settings UI control for this in an initial PR and only add it in a follow-up PR. |
Users who want to use a font like Terminus might want to specify a physical pixel size rather than a virtual one. Should we consider another suffix (and borrow from the Android resource language, or something else that offers |
I've thought about this and initially considered to add a physical pixel unit, but then realized: Bitmap fonts like that already require you to enter font sizes in exact pixels and not points, but we don't even allow anything but point sizes (just like most text editors). So basically if you want to use Terminus TTF you already need to know that 18px map to 13.5pt and once you know that you can write this given my proposal: {
"cellSize.y": "13.5pt",
"font":
{
"face": "Terminus (TTF) for Windows",
"size": 13.5
}
} |
It would be nice being able to specify CSS |
A couple of suggestions:
I personally think that width and height are more understandable as settings, so, one of these would be nice:
|
Does what it says in the title. After this commit you can customize the height and width of the terminal's cells. This commit supports parts of CSS' `<length-percentage>` data type: Font-size relative sizes as multiples (`1.2`), percentage (`120%`), or advance-width relative (`1.2ch`), as well as absolute sizes in CSS pixels (`px`) or points (`pt`). This PR is neither bug free in DxEngine, nor in AtlasEngine. The former fails to implement glyph advance corrections (for instance #9381), as well as disallowing glyphs to overlap rows. The latter has the same overlap issue, but more severely as it tries to shrink glyphs to fit in. Closes #3498 Closes #14068 ## Validation Steps Performed * Setting `height` to `1` creates 12pt tall rows ✅ * Setting `height` to `1ch` creates square cells ✅ * Setting `width` to `1` creates square cells ✅ * Setting `width` or `height` to `Npx` or `Npt` works ✅ * Trailing zeroes are trimmed properly during serialization ✅ * Patching the PR to allow >100 line heights and entering "100.123456" displays 6 fractional digits ✅
New to this thread, and to this project. I just tried to use this feature. I ran the command "Open settings file (JSON)", and in the
I launched Windows Terminal but saw no effect. Am I doing something wrong? |
@cool-RR What version did you try that on? This hasn't shipped in 1.16 or 1.17 - it's only checked in to |
Ah, I see. Indeed I tried it on 1.16.10261.0. I'm not good at building... Is there a way for me to run the latest |
It seems a lot of people want this feature. Any chance of it arriving early in a 0.17-and-a-half release, or are there too many invasive changes to get it to land here? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Windows terminal's line spacing is obviously too large when compared to what other command line tools have (user of Putty, XShell, mintty, Gnome terminal here). I'd like to have it either fixed (optimally) or made configurable (acceptable). |
@alcm-b as discussed in literally the last 5 comments, this is already configurable as of version 1.18. Try something like: "font":
{
"face": "Consolas",
"size": 12,
"cellHeight": ".9"
} |
@zadjii-msft thanks for pointing that out - it really is there in 1.18 👍 Moving the ticket away from
|
cellHeight does not work, tried multiple options. This should be a straight forward setting. |
Is "Line height" in Settings not straightforward enough for you? |
I just came upon this thread, and I found that "font": {
"face": "Cascadia Mono",
"size": 10,
"weight": "normal",
"cellHeight": "1.3"
} |
the space between lines is way too large.
here's a comparison of the same block of text in terminal (top-left) and windows 10 command prompt (both bottom and right). the font is 'Lucida Console' in both programs.
the block on the bottom shows that the fonts are the same size (the width is the same).
the block on the right shows that the Terminal rendering is nearly 40% larger (blue arrow) than the Command Prompt rendering. That's 40% less text i can read without scrolling.
at the very least there needs to be an option to change the leading (that scales properly), although i'd recommend making it look like Command Prompt by default.
The text was updated successfully, but these errors were encountered: