Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4591 - Latest Xfree ebuild kills anti alias fonts
Summary: Latest Xfree ebuild kills anti alias fonts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-05 13:08 UTC by chris knoblock
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
no-aa (noaa.jpg,265.91 KB, image/jpeg)
2002-07-15 12:47 UTC, Andreas Kotowicz
Details
very small letters (tiny.jpg,106.35 KB, image/jpeg)
2002-07-15 14:09 UTC, Andreas Kotowicz
Details
is this "some aa"? (sortofaa.png,144.49 KB, image/png)
2002-07-19 04:38 UTC, Andreas Kotowicz
Details
so what's going on here? (strangeaa.png,173.52 KB, image/png)
2002-07-23 11:13 UTC, Andreas Kotowicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chris knoblock 2002-07-05 13:08:56 UTC
The latest ebuild of xfree (4.2.0-r12) stops anti-alias fonts in gnome2.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-06 17:20:08 UTC
Works fine here.

Screenshot ?
Comment 2 Andreas Kotowicz 2002-07-11 02:35:42 UTC
I have something similar happening here. anti-aliasing seems to work everytime
I've just booted. logging out of gnome -> gdm shows me normal fonts
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-11 14:50:59 UTC
Checkout:

  http://bugs.gentoo.org/show_bug.cgi?id=4313

Then try to run startx from console (make sure the env variable to enable
AA is set), and see if that works.
Comment 4 Andreas Kotowicz 2002-07-15 12:46:24 UTC
starting gnome from console works fine. i tried the solution from bug#4313, but
this doesn't help. want proof? see pic
Comment 5 Andreas Kotowicz 2002-07-15 12:47:09 UTC
Created attachment 2269 [details]
no-aa

here's the proof
Comment 6 Andreas Kotowicz 2002-07-15 12:52:06 UTC
starting from console gives me ugly fonts now too :( so it can't be an gdm thing
nor has it anything to do with the bash thing.
Comment 7 Andreas Kotowicz 2002-07-15 14:09:10 UTC
Created attachment 2271 [details]
very small letters

this is the other extreme way it behaves. tiny, isn't it?
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-15 14:18:09 UTC
Well, it have always, and still work fine here and do so for a lot of other
people.  I am not trying to shove all the blame on you, but due to some
part of the way/order you do things, it can be that a bug comes to light.

Try to put "export GDK_USE_XFT=1" in your /etc/profile, and see if that helps.
Maybe also in your /etc/X11/Sessions/Gnome ?
Comment 9 Andreas Kotowicz 2002-07-15 14:30:19 UTC
did you have a look at the screenshots? in the first one you can the
gnome-terminal being opened. there's the proof that GDK_USE_XFT=1 is exported. 
it's by default in /etc/X11/Sessions/Gnome
Comment 10 Andreas Kotowicz 2002-07-15 14:47:50 UTC
I think this is some kind of generel xfree build problem. my emerge went just
fine, but for example the symbolic link from /usr/X11R6/lib/X11 to /usr/lib/X11
wasn't there (altough it appeard in the logs that it has been done). 
so what are we actually looking for?
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-15 15:01:18 UTC
1)  GDK_USE_XFT must be set *before* gnome/gtk+ apps start.

2)  If you really need to use "declare", and quote everything, try using:

  declare -xi GDK_USE_XFT="1"

3) Must confess, I didnt look at /etc/X11/Sessions/Gnome yet :/


As for that link, mine is in tackt ... *sigh*.
Comment 12 Andreas Kotowicz 2002-07-15 15:30:48 UTC
GDK_USE_XFT is already set when I login to the text console. and then it's
exported a second time in /etc/X11/Sessions/Gnome.
what do you meen by the declare thing? I don't understand it.
different question: what filesystem are you running gentoo on (you can call me
stupid now but i have some suspicion here related with some other stuff not
going the way it should go)?
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-15 15:47:50 UTC
Huh?  I did not call you stupid.

Using ext3.
Comment 14 Andreas Kotowicz 2002-07-15 15:54:26 UTC
never said you were calling me stupid :) this i just some german saying which
means something like "the following thing I'm saying might sound so strange to
you that you might get the impression i'm stupid". so this was no offend, ok?

ext3, hm - that's not what I expected. running gentoo-kernel? or vanilla?
Comment 15 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-16 17:39:16 UTC
Sorry, went to bed.  Running custom with preemptive and AC patch (rmap and works).

What FS you running ?  Any reason for the asking of my FS type ?

Can you try something like:

# GDK_USE_XFT=1 startx

from console (with xdm/gdm/whatever stopped) ?
Comment 16 Andreas Kotowicz 2002-07-17 08:54:47 UTC
I'm running ext3 aswell. 
I think I know now what was causing aa not to work. have a look at:

http://forums.gentoo.org/viewtopic.php?t=4825

I also edited my Xftconfig files and from this point on aa was going crazy. now,
fresh install, I didn't alter a single file, aa works just fine.
Comment 17 Andreas Kotowicz 2002-07-17 11:56:26 UTC
aa seems to be broken again! but it's not related to gdm as logging in from
console breaks aa.

> declare -xi GDK_USE_XFT="1"

tried this. doesn't help

> GDK_USE_XFT=1 startx

tried this aswell - doesn't help either

it worked before on pure gnome install. now I emerged evolution, xmms and
gkrellm and it seems to break. but this could be just by chance
Comment 18 Andreas Kotowicz 2002-07-17 12:32:16 UTC
why are following lines in r12 ebuild commented out? wouldn't this prevent aa to
work?

# Apply Xft quality patch from http://www.cs.mcgill.ca/~dchest/xfthack/
#
cd ${S}/lib/Xft
#
cat ${FILESDIR}/${PVR}/xft-quality.diff | patch -p1 || die
Comment 19 Andreas Kotowicz 2002-07-17 14:43:51 UTC
i unmerge r12, emerged r9 -> didn't help.
unmerged evolution and all it dependencies -> didn't help
unmerged xscreensaver and all it dependencies -> didn't help

do you run any gnome-1.4 stuff on your box? I removed everything i had here.
is there a way to check what Xft is doing?
Comment 20 Andreas Kotowicz 2002-07-17 16:56:25 UTC
just thought i should maybe post my system conf here so people might actually
see what's different to theirs:

amd athlon 900
ext3 fs
384MB ram (passed memtest86)
gentoo 1.3b (gcc 3.1)
make.conf flags:
USE="-apm -arts -kde -qt -qtmt esd dvd"

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"

gnome2, galeon, evolution, zapping, xmms, gkrellm installed
latest Xfree-4.2.0-r12 installed
Comment 21 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-17 17:09:02 UTC
Yep.  Evo, Mozilla, multi-gnome-terminal, gkrellm, xmms, etc.  All those
do not have AA, but the gtk2 stuff is fine.

BTW, I use all the X config files as installed from -r12 ... no
changes to XftConfig as some guys on the forums propose.

Above just snippets out of private mail between me and Andreas.
Comment 22 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-17 17:12:47 UTC
Just an thought ... you dont have gnome-core installed (should not) ?
Comment 23 Andreas Kotowicz 2002-07-17 17:19:55 UTC
gnome-core-1.4.1 is NOT installed
Comment 24 Spider (RETIRED) gentoo-dev 2002-07-17 17:31:23 UTC
okay, AA in Gnome 2 works for me, both using startx, and using GDM

xfree 4.2.0-r12
pretty much a week old "all up to date" gnome2 / gtk+ packages
(fun ; )
athlon tbird, gcc 3.1 -O2 compile options.
Ati Rage IIc+ with Xfree 4.1 ati drivers binary included (bug in 4.2 with some
mach 64 chipsets and clock timings)

Theese fontpaths in XF86Config 
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/local/share/fonts/XPTrueType/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"


Section "Module"
        Load  "extmod"
        Load  "xie"
        Load  "pex5"
        Load  "glx"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "speedo"
        Load  "type1"
        Load  "freetype"
EndSection

and XftConfig :
dir "/usr/X11R6/lib/X11/fonts/Type1"
# TTF fonts
dir "/usr/X11R6/lib/X11/fonts/truetype"
dir "/usr/X11R6/lib/X11/fonts/TrueType"
dir "/usr/X11R6/lib/X11/fonts/TTF"
# User installed fonts
dir "/opt/ttfonts"
# URW fonts
dir "/usr/share/fonts/default/Type1"
# Localized Truetype fonts
dir "/usr/share/fonts/truetype"
dir "/usr/share/fonts/ttf/western"
dir "/usr/share/fonts/ttf/big5"
dir "/usr/share/fonts/ttf/gb2312"
dir "/usr/share/fonts/ttf/japanese"
dir "/usr/share/fonts/ttf/korean"
dir "/usr/share/fonts/ttf/armenian"
dir "/usr/share/fonts/ttf/decoratives"
dir "/usr/share/fonts/ttf/cyrillic"
dir "/usr/share/fonts/ttf/viet"
dir "/usr/share/fonts/ttf/ethiopic"
dir "/usr/share/fonts/ttf/georgian"
dir "/usr/share/fonts/ttf/arabic"
dir "/usr/share/fonts/ttf/hebrew"
dir "/usr/share/fonts/ttf/unicode"
# AbiSuite comes with URW fonts as well
dir "/usr/share/AbiSuite/fonts"



Also: check your /etc/pango.pangox.aliases

run / update gnome-font-install .... (emerge libgnomeprint )
Comment 25 Andreas Kotowicz 2002-07-18 14:31:46 UTC
I've just rebuild my system from scratch with -O2 options - didn't help much.
gnome and aa works just in 1 out of about 5 times. 
I think, this is a gnome2 package bug. do you guys have the latest packages
installed?

what should my /etc/pango/pangox.aliases look like?
the XF86Config and XftConfig files are the same here. 

could this bug have anything to do with this one
http://bugs.gentoo.org/show_bug.cgi?id=5098. as gconf isn't really installed
properly but emerge gnome goes on, some stuff might be broken. should I maybe do
a "emerge -e gnome"?

libgnomeprint is installed. with what options should i run / update
gnome-font-install?
Comment 26 Andreas Kotowicz 2002-07-18 15:08:52 UTC
I'm pretty positive at the moment that this is NOT a xfree problem. aa works in
mozilla, only the gtk2 stuff isn't aa. so it must be a gtk2 or gnome2 package issue
Comment 27 Andreas Kotowicz 2002-07-19 04:38:39 UTC
Created attachment 2378 [details]
is this "some aa"?

have a look at this screenshot. it looks sort of aa, but still gnome-terminal
isn't aa. but this looks way bettern than the noaa screenshot submitted
previously. what do you think?
Comment 28 Andreas Kotowicz 2002-07-23 07:10:20 UTC
tried xfree along with nvidiadrivers. aa won't work at all! so could this mean,
it is a xfree bug?
Comment 29 Andreas Kotowicz 2002-07-23 11:12:56 UTC
xchat-1.9.2 just told me: "Using Xft for text rendering (good!)." well, so xft
is working. hm, but why are the fonts so big? this looked different before. and
why does the gnome-terminal font look really ugly? I'll submit a screenshot.
please tell me what you think.
Comment 30 Andreas Kotowicz 2002-07-23 11:13:31 UTC
Created attachment 2488 [details]
so what's going on here?
Comment 31 chris knoblock 2002-07-23 13:43:56 UTC
check your properties in your terminal. you need to tell it not to use the
default font size. that should fix you ugly fonts in the terminal
Comment 32 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-23 14:18:34 UTC
Using the nvidia drivers over here, so once again do not look like the
root of the problem (geforce2 mx400 btw) :(
Comment 33 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-07 16:30:03 UTC
I am guessing this is not resolved yet ? :(
Comment 34 Andreas Kotowicz 2002-08-12 05:08:05 UTC
I think this was more a freetype issue. just installed freetype 2.1.2 and aa
just rocks!
Comment 35 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-12 13:18:03 UTC
Great.  Guess we should consider unmasking that one then sometime soon.