Add space / gutter / margin at top of document?

Hello,

I like how many things can be tuned in the GUI of kate, but I miss something important: a cleaner separation between the top of the «write area» and the bottom of the window header.

Not very simple to explain, so a picture will help:

Left: kate on macOS / Right: BBEdit

You can see how the text in kate is very close to the top, and how the text in BBEdit is separated from the top by a small margin.

Is there a way to add such a margin to kate?

thanks

i suspect that is a function of your font choice.

neither kwrite nor kate will account for fonts that take up the entire line height

you might also try increasing the line height factor in settings

While the font can have an impact here, the picture shows the same font being used on kate and on BBEdit (monaco 12).

Also, changing fonts just to get some «air» above the first line is not something I would consider. The font has to accommodate my eyes on the whole document and it’s obviously a priority.
For the same reason, increasing the line height factor is effective on the first line but has a negative impact on the rest of the document.

which version of kate are you using and on which operating system?

I’m using kate 26.07.70 on macOS (80% of the time), 26.04.0 on FreeBSD and whatever is current on various Linux machines.

i just checked the nightly build on my kubuntu and it has the same space around the font characters as my plasma 5 version.

my guess is this first line issue is unique to the mac version and/or something about your setup.

That’s what it looks like on FreeBSD, XFCE:

FreeBSD, Plasma 6:

It’s still a bit too close from the top (for me) and it looks exactly the same as on macOS (even though it’s not the same font).

i’m now wondering if there are some graphics scaling issues going on here…

have you changed anything about the scaling of the desktop for you monitors or the font size of the plasma desktop?

my scaling is 1:1 an all the fonts are the default values

Well I don’t think so, it’s about the same on macOS, FreeBSD XFCE, FreeBSD Plasma 6 and Linux Plasma 6.