Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-23-2006, 05:53 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware-current
Posts: 14
Rep:
|
No font antialiasing after update to GTK+ 2.10.4
Hello,
i just compiled gtk+ 2.10.4 and all dependencies (pango 1.14.4, atk 1.12.1, glib2 2.12.3 and cairo 1.2.4) by myself for Slackware-current. All works fine and my main target to compile gimp 2.3.11 with printer support is succeeded.
But now i have no font antialiasing in my gtk2 applications GDK_USE_XFT is set to 1 but nothing helps.
Maybe i have forgotten something?
|
|
|
09-23-2006, 07:07 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,158
|
It appears that Gtk 2.10.4 has just been released. Why don't you wait a bit and follow the mail list at gtk.org; maybe there's a bug.
|
|
|
09-23-2006, 08:10 AM
|
#3
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep:
|
Global fontconfig setting may help.
Make sure following code is in /etc/fonts/local.conf and then update fonts cache with fc-cache -fv.
Code:
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
|
|
|
09-23-2006, 08:44 AM
|
#4
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware-current
Posts: 14
Original Poster
Rep:
|
Ok, i have created a /etc/fonts/local.conf file and put
Code:
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
in it then fc-cache -fv but nothing happens just no antialiasing.
I have tried the gtk2.10 packages from dropline gnome but there are no antialiasing, too.
|
|
|
09-23-2006, 09:21 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware-current
Posts: 14
Original Poster
Rep:
|
Ok,something strange is going on. In my home dir there is a .fonts.conf file with
Code:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
It means that antialiasing should work, or?
|
|
|
09-23-2006, 03:03 PM
|
#6
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
Just a wild guess, but have you (re)installed the FreeType 2.1.9 package that has the ByteCode Interpreter enabled? IIRC, Alien Bob has such a package at his wiki. You also should be able to find the same at linuxpackages.net.
I do not know why PV does not compile FreeType that way. Yeah, I know, there is the potential of patent infringement, but many distro vendors package FreeType with the ByteCode Interpreter enabled and nobody yet has been sued. And this has been going on for years. Basic common law dictates that by allowing this practice to continue for many years that the patent holder (Apple?) is estopped from suing because they have let the practice continue for so many years. That is, the doctrine of estoppel says that the patent holder's own actions prevent them from suing. Just as important, there never was any consensus opinion that enabling that option was indeed a patent infringement, but only speculation.
The fonts display is dramatically improved by using FreeType with the ByteCode Interpreter enabled. Dramatically. When I first started using GNU/Linux I considered abandoning the idea until I discovered this little trick. The font display was noticeably inferior with or without anti-aliasing. This one little change was significant enough to motivate me to stick with GNU/Linux. The first thing I do when I update any X11 packages is immediately reinstall FreeType 2.1.9 with the ByteCode Interpreter enabled.
Regarding the .fonts.conf file in your home directory, you can delete that file if your preferences are the same as those of the global files found in /etc/fonts. I use KDE, but all I have to do is open the KDE control center page for font configuration and KDE generates a local file even if I make no changes. Annoying. I'll guess that GNOME does the same.
|
|
|
09-24-2006, 07:02 AM
|
#7
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep:
|
Quote:
Originally Posted by AntZero
...
in it then fc-cache -fv but nothing happens just no antialiasing.
...
|
What do you mean by nothing has happened ? When you run it in console or terminal it should display list of font directories it rebuilds caches for. Do you get some error output ?
Last edited by dunric; 09-24-2006 at 07:04 AM.
|
|
|
09-24-2006, 03:32 PM
|
#8
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
Quote:
Originally Posted by AntZero
Ok,something strange is going on. In my home dir there is a .fonts.conf file
|
This file is created by the KDE font/antialiasing applet in the KDE Control Center. Unfortunately, its presence breaks the preferences applet in Gnome that performs the same function. Create a directory and move this file (.fonts.conf) inside of it. Then restart Gnome. This should allow you to set the antialiasing properties in Gnome again using preferences-fonts in the Gnome menu.
I use a modified freetype and do not use antialiasing in KDE. When I go to Gnome, I cannot make the fonts antialiased, nor can I change the hinting settings (not that I want to), unless this file (.fonts.conf) is deleted, renamed or moved.
Yet another way Gnome and KDE do not play nice together.
HTH
|
|
|
09-26-2006, 04:43 AM
|
#9
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware-current
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by dunric
What do you mean by nothing has happened ? When you run it in console or terminal it should display list of font directories it rebuilds caches for. Do you get some error output ?
|
I mean that after all no antialiasing is there The fc-cache -fv command works fine and print out a list auf directories and font counts.
Now i have reinstalled the FreeType2 package with the bytecode interpreter enabled. The fonts are looking much better now but no antialiasing ...
I moved the .fonts-conf file from my home dir to /etc/fonts as local.conf. It seams to work a little bit. Now, if it set the antialiasing option in local.conf to true there is antialiasing in Firefox (current Slackware package) but not in applications compiled by myself.
Maybe a linked problem? I have searched my system but i have only one GTK2 and FreeType2 installed. Can it be, that my "home build" applications are linked to some other stuff?
|
|
|
09-27-2006, 01:56 AM
|
#10
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
While surfing for something else I came across this discusison:
http://www.kde-look.org/content/show.php?content=9714
You did not mention as much, but if you are using GTK apps in KDE 3.5.4 then the you might want to try this "toggle" trick to reset KDE to use antialiasing.
|
|
|
09-27-2006, 02:29 AM
|
#11
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware-current
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by Woodsman
While surfing for something else I came across this discusison:
http://www.kde-look.org/content/show.php?content=9714
You did not mention as much, but if you are using GTK apps in KDE 3.5.4 then the you might want to try this "toggle" trick to reset KDE to use antialiasing.
|
Oh my god, this it it! Now i have font antialiasing in gtk apps again. Many thanks for this suggestion.
|
|
|
All times are GMT -5. The time now is 08:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|