|
|
Home » Developing U++ » U++ Developers corner » Linux anti-aliasing fonts problem
Linux anti-aliasing fonts problem [message #31286] |
Fri, 18 February 2011 16:52  |
xzsa
Messages: 5 Registered: February 2011
|
Promising Member |
|
|
Hi. I'm using Archlinux x86_64 and decided to try U++.
I've installed theide-svn and upp-svn from AUR.
I'm using Verdana as my default font with enabled anti-aliasing only for fonts smaller than 7.0pt and bigger than 12.0pt (for fonts between 7.0pt and 12.0pt anti-aliasing is disabled).
I am using KDE System Setings -> Fonts to configure this.
But "TheIDE" and the sample U++ applications I built with it look diferent from the other applications (GTK+ and KDE) - fonts of applications built with U++ are always anti-aliased and for all the other applications are not (with my current settings).
If I disable anti-aliasing completely (with no exclude range) then everything looks fine (all app fonts look the same), but captions in firefox look ugly. If I enable anti-aliasing completely all aps look the same, but I don't want to do this.
This problem presists in KDE-4, Openbox and LXDE.
In XFCE4 everithing looks OK. I don't know why.
Also if I install "gnome-control-center" package and use "gnome-settings-daemon" in Openbox fonts look OK. But I don't want to use gnome-settings-daemon since all the other apps look fine without it and it breaks my current Openbox configuration.
Is there any way to fix this issue?
|
|
|
|
|
Re: Linux anti-aliasing fonts problem [message #31293 is a reply to message #31292] |
Sat, 19 February 2011 10:08   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
xzsa wrote on Sat, 19 February 2011 02:38 | I have commented line 672 from CtrlLib/ChGtk.cpp
gtk_antialias = Nvl(GtkStyleInt("gtk-xft-antialias"), -1);
and now everything seems to work fine.
I don't understand how it works or why it works but it works.
The only difference I noticed is that the other applications start anti-aliasing when I set "Exclude range" to 10 pt or less, while the U++ apps start anti-aliasing when I set "Exclude range" to 9 pt or less. But it doesn't bother me.

|
Well, that is nice to know, but that does not really solve the problem... because we definitely want to know gtk setting there.
My guess is that in your system, the setting of antialiasing (the dialog you posted) works on lower level than the setting in gtk and usually applications are not gtk (or gtk is able to to detect something else too). This theory is supported by the fact that in xfce, everything is OK (xfce is gtk based).
Can I repeat my question how gtk apps behave for you (I mean, in KDE)?
Other than, possible semisolution would be to not load the info from gtk when desktop is not gtk based (but I wonder how to detect that).
I am moving this to development corner, as this is something to resolve ASAP 
Mirek
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:41:55 CEST 2025
Total time taken to generate the page: 0.01143 seconds
|
|
|