Macports installation of kate, Anput Kate gives: Version 3.10.1 "Using KDE Development Platform 4.10.1" The displayed line numbers' vertical positions don't correspond to the correct lines, they mostly appear too small. When enlarging or shrinking the font size, the resulting offset changes, and for some particular scalings (at rather large font sizes) the line numbers and lines match. Attached are 2 screenshots with different font sizes, both showing different offsets. Changing the font doesn't mitigate this for me. I think there might be a connection to this bug (https://bugs.kde.org/show_bug.cgi?id=296845). Looking at the suggestions there, I changed the KDE theme from Oxygen to the one seen in the screenshots without any improvement. I didn't manage to change the UI font. There seems to be nothing like a "system settings" or "desktop preferences" package available via Macports. Please let me know how to do this if necessary. Reproducible: Always Steps to Reproduce: 1. Launch kate 2. Open any file (> 1 line) 3. Show line numbers Actual Results: Line numbers show offset/wrong vertical scaling for most font sizes Expected Results: Line numbers align with corresponding lines
Created attachment 78383 [details] Kate screenshot with small font size
Created attachment 78384 [details] Kate screenshot with large font size
Hmm, here on Linux they scale perfectly :/ Somebody any idea? In the code it looks like we really use exactly the same font for the line numbers than for the text in the view, no idea why it doesn't scale equally on mac :/
Bug 302748 has a possible explanation. As far as I see, you do not use the same fontHeight initialization in KateIconBorder.
Git commit 053778c40d2336349b2fb74d5bc579325d3a62d8 by Dominik Haumann. Committed on 14/07/2013 at 15:32. Pushed by dhaumann into branch 'master'. fix offset when drawing line numbers also ok to backport to 4.10 FIXED-IN: 4.11 M +2 -2 part/view/kateviewhelpers.cpp http://commits.kde.org/kate/053778c40d2336349b2fb74d5bc579325d3a62d8
Git commit efea9f06be0e51e3a091a2948bcc48f365f0bdc8 by Dominik Haumann. Committed on 14/07/2013 at 15:32. Pushed by dhaumann into branch 'KDE/4.11'. fix offset when drawing line numbers also ok to backport to 4.10 FIXED-IN: 4.11 M +2 -2 part/view/kateviewhelpers.cpp http://commits.kde.org/kate/efea9f06be0e51e3a091a2948bcc48f365f0bdc8
Git commit 3a421e21b6cc62c5088d02dcc436feac115b5ba9 by Dominik Haumann. Committed on 14/07/2013 at 15:32. Pushed by dhaumann into branch 'KDE/4.10'. fix offset when drawing line numbers also ok to backport to 4.10 FIXED-IN: 4.11 M +2 -2 part/view/kateviewhelpers.cpp http://commits.kde.org/kate/3a421e21b6cc62c5088d02dcc436feac115b5ba9
*** Bug 323377 has been marked as a duplicate of this bug. ***
*** Bug 334534 has been marked as a duplicate of this bug. ***
Christoph: Sorry for opening a bug report for a known problem. Any suggestions on how I can get a Kate version > 3.10.2 on my Win7 KDE system? thanks, Gavin Bowlby On Thursday, May 8, 2014 4:29 PM, Christoph Feck <christoph@maxiom.de> wrote: https://bugs.kde.org/show_bug.cgi?id=317352 Christoph Feck <christoph@maxiom.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gavin_bowlby@yahoo.com --- Comment #9 from Christoph Feck <christoph@maxiom.de> --- *** Bug 334534 has been marked as a duplicate of this bug. ***
*** Bug 338573 has been marked as a duplicate of this bug. ***