Bug 299544 - No font anti-aliasing unless zooming in at 300%
Summary: No font anti-aliasing unless zooming in at 300%
Status: RESOLVED UPSTREAM
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: 2.4.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 10:00 UTC by Vadym Krevs
Modified: 2012-05-11 11:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing anti-aliased text (107.00 KB, image/png)
2012-05-08 08:24 UTC, Halla Rempt
Details
Bad font rendering (392.77 KB, image/png)
2012-05-08 18:03 UTC, Vadym Krevs
Details
Words vs OpenOffice (216.83 KB, image/png)
2012-05-08 18:08 UTC, Vadym Krevs
Details
KDE font settings (86.61 KB, image/png)
2012-05-08 23:02 UTC, Vadym Krevs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs 2012-05-07 10:00:30 UTC
Start Words, and create a new document using any template. Type some text. It is rendered without any anti-aliasing. Repeatedly try to zoom in. There won't be any anti-aliasing until zoom factor is over 300%, at which point fonts would look smooth. All other KDE/GTK applications have no such problem.

Reproducible: Always

Actual Results:  
Font anti-aliasing works in Words.

Expected Results:  
Font anti-aliasing does not work in Words.
Comment 1 Camilla Boemann 2012-05-07 21:05:19 UTC
It works just fine.
Are you sure you are not talking about hinting plus you have qt less than 4.8
Comment 2 Vadym Krevs 2012-05-08 08:17:29 UTC
 I've got KDE 4.8.2 and libqt 4.8.1. Yesterday also upgraded to KDE 4.8.3 with same results. And it does not "work just fine".
Comment 3 Halla Rempt 2012-05-08 08:24:01 UTC
Created attachment 70946 [details]
screenshot showing anti-aliased text

Please check the attached screenshot. The text is antialiased. You could attach a screenshot of words showing your problem, but I suspect a local configuration issue.
Comment 4 Camilla Boemann 2012-05-08 08:36:24 UTC
Yes by all means, attach a screenshot. We can always reopen this bug, if it turns out it's a real problem and not just a local issue.
Comment 5 Vadym Krevs 2012-05-08 18:03:04 UTC
Created attachment 70961 [details]
Bad font rendering

Here you go - two windows - one at default zoom and another at 302% zoom
Comment 6 Vadym Krevs 2012-05-08 18:08:08 UTC
Created attachment 70962 [details]
Words vs OpenOffice

Example of proper font smoothing by OpenOffice.
Comment 7 Camilla Boemann 2012-05-08 18:11:26 UTC
I must admit it does look bad, but I still think it's a local or distribution problem - like the dpi info of your screen not set, or no scalable fonts installed.

Can please check that your dpi info is correct
Comment 8 Christoph Feck 2012-05-08 18:56:10 UTC
> It is rendered without any anti-aliasing.

Look at the text in menus etc. You configured KDE to not use text anti-aliasing.
Comment 9 Vadym Krevs 2012-05-08 23:00:17 UTC
$ xdpyinfo| grep reso
  resolution:    133x133 dots per inch
Comment 10 Vadym Krevs 2012-05-08 23:02:41 UTC
Created attachment 70969 [details]
KDE font settings

As you can see anti-aliasing is enabled. Only font sizes below 7pt are excluded. As I recall, the default document template in Words uses Arial 12pt.
Comment 11 Vadym Krevs 2012-05-08 23:04:25 UTC
Also, if you look at the window title bar font - it uses anti-aliasing. So I strongly doubt that my KDE font settings are at fault here.
Comment 12 Camilla Boemann 2012-05-08 23:31:30 UTC
try see if turning off the exclusion below 7pt off helps

You cannot compare pt numbers so it may make a difference. Especially since you have a high dpi screen (well higher than mine)
Comment 13 Camilla Boemann 2012-05-08 23:40:29 UTC
yes that must be it - i just tried excluding a wide range and then I get no antialiasing either.

About pt numbers in words versus the kde dialog - there is a conversion factor:
   your dpi / 72= 133 / 72  roughly a factor 2

meaning when you say below 7pt in words that means below 14 pt. But for zooming of text to work you need to have no exclusion range at all. other wise it will still be visible when zoomed in

Unfortunately qt doesn't allow us to turn off antialiasing exclusion ranging
Comment 14 Vadym Krevs 2012-05-09 11:56:21 UTC
Where does "72" come from into the equation?

How strange. Are you implying that Words (and other Calligra apps) interpret KDE font antialiasing settings differently to all other applications? This makes no sense, sorry.
Comment 15 Camilla Boemann 2012-05-10 16:04:07 UTC
72 comes from the fact that there are 72 pt per inch.

The way Qt works is it does it's layout in pixels (make sense as it looks nicer), however it breaks down when you want to zoom in and out, so we  have to force the same dpi upon Qt all the time and we have chosen 72 as that corresponds to pt

Everything we do internally also happens in pt so it works together.

That works nicely except for this antialiasing setting. We actually force antialiasing on, but i guess we can't control the exceptions. I wasn't aware of this.

So it's a limitation in qt, however i suggest you just don't use the exclusion range, as I don't foresee this being implemented in qt
Comment 16 Vadym Krevs 2012-05-10 17:36:43 UTC
I see. This explains why only Words is subject to this behaviour. IMHO, it is unreasonable to require users to not exclude a range from anti-aliasing because that's the only option that results in clear fonts at small sizes. This is a very commonly used option which is mentioned in pretty much any guide on how to get good-looking fonts on Linux.
Comment 17 Camilla Boemann 2012-05-10 17:52:41 UTC
yes. Feel free to open a bug against Qt
Comment 18 Vadym Krevs 2012-05-11 08:33:23 UTC
IMHO, it is your - developer of an application that exhibits a problem -  responsibility, not mine - user of the application - to raise bugs against a 3rd party library you chose to build the application on, link them to the defect reported against your app, so other poor sods who encounter the same issue don't have to waste their and your time over and over again.
Comment 19 Camilla Boemann 2012-05-11 11:06:42 UTC
Well I don't disagree it should be fixed and ultimately I will have to do some things too. But please understand I'm very busy with fixing a lot of other bugs.

You have done a great thing by reporting this bug. I've learned something, so thank you very much. But I also know that I wil not have the time to follow up on this.

This is free software where nothing happens unless someone with an itch steps up and does the work. So I ask you to please take it to the next level and drive this bug to being fixed.