Hi,

I (developer of KDiff3) now also had a look into this bug.

On Ubuntu 12.04 I can reproduce it too.

When making a screenshot and zooming in, it appears that same characters are 
rendered differently every time.
 
Qt provides an integer based QFontMetrics and a QFontMetricsF class that 
returns double values. For normal widgets previously QFontMetrics was 
sufficient because the width of a character was an integer value in pixels 
only. This seems to have changed because QFontMetricsF::width() returns values 
that are no ints.

For the moment I can only say that I am working on a solution.

And with a little test I was able to find two fonts that still have an integer 
width.
Ubuntu Mono, Regular, Size 12
Ubuntu Mono, Regular, Size 9

Benoît Thébaudeau also pointed out Monospace Regular, Size 10, which comes 
very close (8.0156 instead of 8.000) and should suffice mostly.

Yet if anyone can tell where this problem comes from, I'd like to know.
Disabling antialiasing globally didn't help. (See /etc/fonts/conf.d/10-
antialias.conf)

One more possible idea would be to build Qt yourself and disable fontconfig ( 
configure option "-no-fontconfig".)

Regards,
Joachim

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/999925

Title:
  KDiff3 font rendering of changed text broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kdiff3/+bug/999925/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to