Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Linux anti-aliasing fonts problem
Re: Linux anti-aliasing fonts problem [message #31307 is a reply to message #31296] Sun, 20 February 2011 14:46 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
xzsa wrote on Sat, 19 February 2011 07:51

All applications - GTK+ and KDE(Qt4) look the same - fonts smaller than 12pt are not antialiased and fonts bigger tahn 12pt are antialiased, only for U++ applications all font sizes are antialiased (with my current settings). And this is under KDE, LXDE and Openbox.

When using Gnome or XFCE4 U++ applications look like the oter applications it seems that there is something running (like gnome-settings-daemon) which fixses it.

I changed line 672 of CtrlLib/ChGtk.cpp

from
gtk_antialias = Nvl(GtkStyleInt("gtk-xft-antialias"), -1);

to
gtk_antialias = -1;

and now U++ applications look like the other applications under all desctop enviroments I've tryed.
It looks that when gtk_antialias = -1; gtk uses the default settings of X server.



...which is sort of problem, because you can change the setting in Gnome to affect that.

Thus I believe that probably the right solution is indeed to detect whether Gnome desktop is active or not and put there -1 only if it is not...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ide MT
Next Topic: Animated GIF support, anybody?
Goto Forum:
  


Current Time: Fri Jul 18 03:31:59 CEST 2025

Total time taken to generate the page: 0.03727 seconds