Discussion:
KDEV 5.0.1 line spacing question
Leon Pollak
2016-09-20 09:49:54 UTC
Permalink
Hello, all.
I am not sure that this is kdevelop problem, but still...:-)
The line spacing I had in 4.7.3 was about 15% less than in 5.0.1.
For example, opening a C-file in old kdevelop showed 52 lines of text, while
in the new one - 48.5 (this half line is something strange, no?).
The situation in the "Project" pane is worse: 50 lines against 39.

Are there some options/parameters regulating this or is this hardwired?

Thanks ahead.
--
Leon
René J.V. Bertin
2016-09-20 13:46:55 UTC
Permalink
Post by Leon Pollak
Are there some options/parameters regulating this or is this hardwired?
KF5 is much more spacey than KDE4 in general, for the Oxygen and Breeze styles that was apparently by user request (and hardwired). I still run KDevelop 4 and 5 side-by-side quite regularly and haven't noticed any obvious differences in the number of visible lines as long as both versions use the same (compact) QtCurve theme. In fact, there is no difference at all in the project manager; same number of lines, and the alternating colour background is perfectly aligned as well. I took a screenshot if you want, it's a bit large to post to the list.
BTW: samme applies to OS X and my KDE4 desktop.

R.
Leon Pollak
2016-09-21 10:01:40 UTC
Permalink
Thank you, Rene.

I do not understand much in the themes, but tried to install the QtCurve theme
you mentioned.
In the "System Settings->Workspace Theme->Desktop Theme" I wasn't able to find
one with this name, but several others which claim to be based on it:
QtCurve-Hardy
Geek
QtCurve-Luna
I asked to install all of these, but only the first I was able to find in the
"list" of installed.
Anyway, I tried tochange to it, but it didn't influence the kdevelop outlook
at all. All was changed was the task bar outlook.

Thank you for your willing to help.
BR
Post by René J.V. Bertin
Post by Leon Pollak
Are there some options/parameters regulating this or is this hardwired?
KF5 is much more spacey than KDE4 in general, for the Oxygen and Breeze
styles that was apparently by user request (and hardwired). I still run
KDevelop 4 and 5 side-by-side quite regularly and haven't noticed any obvious
differences in the number of visible lines as long as both versions use the
same (compact) QtCurve theme. In fact, there is no difference at all in the
project manager; same number of lines, and the alternating colour background
is perfectly aligned as well. I took a screenshot if you want, it's a bit
large to post to the list.
Post by René J.V. Bertin
BTW: samme applies to OS X and my KDE4 desktop.
R.
--
Leon
Milian Wolff
2016-09-20 16:01:43 UTC
Permalink
Post by Leon Pollak
Hello, all.
I am not sure that this is kdevelop problem, but still...:-)
The line spacing I had in 4.7.3 was about 15% less than in 5.0.1.
For example, opening a C-file in old kdevelop showed 52 lines of text, while
in the new one - 48.5 (this half line is something strange, no?).
The situation in the "Project" pane is worse: 50 lines against 39.
Are there some options/parameters regulating this or is this hardwired?
Use a different font and/or font size.

Probably you never set this but simply used whathever default the KDE style
gave you. Some things, esp. regarding the font, have been changed there in the
past.

Try e.g. DejaVu Sans Mono with a given font size and you should be able to get
back whatever you had in KDevelop 4 times.

Bye
--
Milian Wolff
***@milianw.de
http://milianw.de
Leon Pollak
2016-09-21 10:22:46 UTC
Permalink
Thank you, Milian.
I have the same font set for all the KDE and it is Consolas.
I doubt that this is the problem of the font as what has changed is the line
spacing. In both kdevelops the font and its size are the same.

BTW, I see the same spacing as in version 4.7.3 in all other applications
based on KDE 4 (kmail, kaddressbook, etc.).

Definitly, stupid question, but still - when I go to "System Settings" I see
the Qt version older than one the kdevelop was compiled with. Can this be the
cause?

BR
Post by Milian Wolff
Post by Leon Pollak
Hello, all.
I am not sure that this is kdevelop problem, but still...:-)
The line spacing I had in 4.7.3 was about 15% less than in 5.0.1.
For example, opening a C-file in old kdevelop showed 52 lines of text, while
in the new one - 48.5 (this half line is something strange, no?).
The situation in the "Project" pane is worse: 50 lines against 39.
Are there some options/parameters regulating this or is this hardwired?
Use a different font and/or font size.
Probably you never set this but simply used whathever default the KDE style
gave you. Some things, esp. regarding the font, have been changed there in the
past.
Try e.g. DejaVu Sans Mono with a given font size and you should be able to get
back whatever you had in KDevelop 4 times.
Bye
--
Leon
Milian Wolff
2016-09-21 16:14:26 UTC
Permalink
Post by Leon Pollak
Thank you, Milian.
I have the same font set for all the KDE and it is Consolas.
I doubt that this is the problem of the font as what has changed is the line
spacing. In both kdevelops the font and its size are the same.
That is odd, I have never seen such a difference.
Post by Leon Pollak
BTW, I see the same spacing as in version 4.7.3 in all other applications
based on KDE 4 (kmail, kaddressbook, etc.).
What about other Qt 5 based applications? A more modern Kate e.g.?
Post by Leon Pollak
Definitly, stupid question, but still - when I go to "System Settings" I see
the Qt version older than one the kdevelop was compiled with. Can this be
the cause?
Well sure, KDE 4 uses Qt 4, KF5 and KDevelop 5 uses Qt 5. There have been some
changes in font rendering, but I don't remember anyone ever complaining about
line spacing... Note that we do not configure line heights at all - we simply
ask the font for its height and use that.

Bye
--
Milian Wolff
***@milianw.de
http://milianw.de
Leon Pollak
2016-09-22 12:58:08 UTC
Permalink
Post by Milian Wolff
Post by Leon Pollak
Thank you, Milian.
I have the same font set for all the KDE and it is Consolas.
I doubt that this is the problem of the font as what has changed is the
line spacing. In both kdevelops the font and its size are the same.
That is odd, I have never seen such a difference.
Please, can you put 4.7.3 and 5.0.1 one against other and compare?
Post by Milian Wolff
Post by Leon Pollak
BTW, I see the same spacing as in version 4.7.3 in all other applications
based on KDE 4 (kmail, kaddressbook, etc.).
What about other Qt 5 based applications? A more modern Kate e.g.?
Below is the Kate version information:
KDE Frameworks 5.25.0
Qt 5.6.1 (built against 5.6.1)
The xcb windowing system

If I open the same source in this Kate and kdevelop 4.7.3 the line spacing is
exactly the same. Strange, I expected it to be the same as in 5.0.1!
Post by Milian Wolff
Note that we do not configure line heights at all - we
simply ask the font for its height and use that.
I am very weak in the GUI internals. Just from some other parameters I know
that line spacing IN GENERAL is tunable...
--
Dr.Leon M.Pollak
Director
PLR Information Systems Ltd.
Tel.:+972-98657670 | POB 8130, Giborei Israel 5a,
Fax.:+972-98657621 | Poleg Industrial Zone,
Mob.:+972-544739246 | Netanya, 42504, Israel.
Milian Wolff
2016-09-22 13:12:40 UTC
Permalink
Post by Leon Pollak
Post by Milian Wolff
Post by Leon Pollak
Thank you, Milian.
I have the same font set for all the KDE and it is Consolas.
I doubt that this is the problem of the font as what has changed is the
line spacing. In both kdevelops the font and its size are the same.
That is odd, I have never seen such a difference.
Please, can you put 4.7.3 and 5.0.1 one against other and compare?
No, I do not have the time for that.
Post by Leon Pollak
Post by Milian Wolff
Post by Leon Pollak
BTW, I see the same spacing as in version 4.7.3 in all other applications
based on KDE 4 (kmail, kaddressbook, etc.).
What about other Qt 5 based applications? A more modern Kate e.g.?
KDE Frameworks 5.25.0
Qt 5.6.1 (built against 5.6.1)
The xcb windowing system
If I open the same source in this Kate and kdevelop 4.7.3 the line spacing
is exactly the same. Strange, I expected it to be the same as in 5.0.1!
Which again proofs that something very fishy is going on at your end. We use
the same katepart that kate is using. So if you see something different in
KDevelop and in Kate, than you must have different settings in both. Please,
go to

KDevelop: Settings -> Configure KDevelop -> Editor -> Fonts & Colors -> Fonts
and compare that to
Kate: Settings -> Configure Kate -> Editor -> Fonts & Colors -> Fonts
Post by Leon Pollak
Post by Milian Wolff
Note that we do not configure line heights at all - we
simply ask the font for its height and use that.
I am very weak in the GUI internals. Just from some other parameters I know
that line spacing IN GENERAL is tunable...
See the config dialog above. We do not offer tuning the line height. Also:

int KateRenderer::lineHeight() const
{
return fontHeight();
}

Bye
--
Milian Wolff
***@milianw.de
http://milianw.de
Leon Pollak
2016-09-22 13:41:49 UTC
Permalink
Post by Milian Wolff
Post by Leon Pollak
Post by Milian Wolff
What about other Qt 5 based applications? A more modern Kate e.g.?
KDE Frameworks 5.25.0
Qt 5.6.1 (built against 5.6.1)
The xcb windowing system
If I open the same source in this Kate and kdevelop 4.7.3 the line spacing
is exactly the same. Strange, I expected it to be the same as in 5.0.1!
Which again proofs that something very fishy is going on at your end. We use
the same katepart that kate is using. So if you see something different in
KDevelop and in Kate, than you must have different settings in both. Please,
go to
KDevelop: Settings -> Configure KDevelop -> Editor -> Fonts & Colors ->
Fonts and compare that to
Kate: Settings -> Configure Kate -> Editor -> Fonts & Colors -> Fonts
Are exactly the same: both are Consolas, Regular, 9.

BUT!!!
The line spacing in the dialogs (not in the editor area!) are different and
vice versa!!!
The Kate dialog has smaller line spacing than the one in Kate!
And the difference is significant. I tuned the window size to be equal. And
now, the kdevelop font size window shows font size lines from 4 to 16 (13
lines) while the Kate size window contains only 4 to 13 (10 lines). I
underline that I tuned the windows sizes equally...

Milian, do you think this is something local in my installation?
--
Leon
Milian Wolff
2016-09-22 14:54:25 UTC
Permalink
Post by Leon Pollak
Post by Milian Wolff
Post by Leon Pollak
Post by Milian Wolff
What about other Qt 5 based applications? A more modern Kate e.g.?
KDE Frameworks 5.25.0
Qt 5.6.1 (built against 5.6.1)
The xcb windowing system
If I open the same source in this Kate and kdevelop 4.7.3 the line spacing
is exactly the same. Strange, I expected it to be the same as in 5.0.1!
Which again proofs that something very fishy is going on at your end. We
use the same katepart that kate is using. So if you see something
different in KDevelop and in Kate, than you must have different settings
in both. Please, go to
KDevelop: Settings -> Configure KDevelop -> Editor -> Fonts & Colors ->
Fonts and compare that to
Kate: Settings -> Configure Kate -> Editor -> Fonts & Colors -> Fonts
Are exactly the same: both are Consolas, Regular, 9.
BUT!!!
The line spacing in the dialogs (not in the editor area!) are different and
vice versa!!!
The Kate dialog has smaller line spacing than the one in Kate!
And the difference is significant. I tuned the window size to be equal. And
now, the kdevelop font size window shows font size lines from 4 to 16 (13
lines) while the Kate size window contains only 4 to 13 (10 lines). I
underline that I tuned the windows sizes equally...
Milian, do you think this is something local in my installation?
Yes, as I said - I have never seen this, nor did anyone ever report this
before. Just to make sure - are you using KDevelop through the AppImage, or
the "real" thing provided by your distro or compiled yourself?

Bye
--
Milian Wolff
***@milianw.de
http://milianw.de
Sven Brauch
2016-09-22 14:58:09 UTC
Permalink
Post by Milian Wolff
Just to make sure - are you using KDevelop through the AppImage, or
the "real" thing provided by your distro or compiled yourself?
Good question -- the AppImage ships its own fontconfig and style, and
things will be different.
Leon Pollak
2016-09-25 07:13:57 UTC
Permalink
Post by Sven Brauch
Post by Milian Wolff
Just to make sure - are you using KDevelop through the AppImage, or
the "real" thing provided by your distro or compiled yourself?
Good question -- the AppImage ships its own fontconfig and style, and
things will be different.
I use AppImage fro 5.0.1 and distro provided for 4.7.3.
Can someone advice me what to do? May be to remove some settings files in
.config or somewhere else?

Thanks!
--
leon
Leon Pollak
2016-09-29 11:10:25 UTC
Permalink
Hello, again.
I created the new "test" user and started the AppImage under the new user -
the spacing seems now to be normal.
So, this is some local setting in my home directory, which influences the line
spacing just in the AppImage only.
I will be very glad to receive any recommendation about where this spoiling
setting may be...

Also, the 5.0.1 version has almost twice bigger tabs with opened files names.
This is consistent in both test user and my home.
Was it on purpose? Any chances to decrease their height?

Thanks a lot!
Post by Leon Pollak
Post by Sven Brauch
Post by Milian Wolff
Just to make sure - are you using KDevelop through the AppImage, or
the "real" thing provided by your distro or compiled yourself?
Good question -- the AppImage ships its own fontconfig and style, and
things will be different.
I use AppImage fro 5.0.1 and distro provided for 4.7.3.
Can someone advice me what to do? May be to remove some settings files in
.config or somewhere else?
Thanks!
--
Leon
Loading...