[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main


  Tutorials On Using Anti-Aliased Fonts With KDE
User Posted by Dre on Thursday 15/Mar/2001, @14:01
from the make-it-so dept.
LinuxPlanet recently published an article which contains a tutorial on how to set up anti-aliased fonts on your KDE 2 box. This article complements the tutorial posted some time ago by Lars Knoll.


<  |  >

 

  Related Links
 ·   Articles on User
 ·   Also by Dre
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Over 40 comments listed. Printing out index only.
OT: KDE 2.1-update?
by Justin on Thursday 15/Mar/2001, @15:48
Hey what is this 2.1-update I see in the "stable" directory at ftp.kde.org ? There are only a few files in there, and they are listed as pre-2.1.1. Are these some late fixes? Did I miss an announcement? :)

-Justin
[ Reply To This | View ]
It was the FontPath all the time
by Arnd Bergmann on Thursday 15/Mar/2001, @16:21
... and I spent almost a week dissecting kdelibs, qt and libXft!
Why me?
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by John Donagher on Thursday 15/Mar/2001, @17:46
If you're on Debian/Unstable, all you should need to do is put set the environment variable QT_XFT=true. The newest KDE and QT have built-in support for anti-aliasing.
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Matthew Vinton on Thursday 15/Mar/2001, @18:46
I FINALLY got Anti-Aliased TT fonts to work under KDE - VERY nice!

I have only one question - the "fixed" font keeps getting set back to "adabi" (which was at first the default everything was set to) - this font seems to be used in quite a lot of web-pages, and I would like to choose something more appropriate. Any suggestions?
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Barracuda on Thursday 15/Mar/2001, @19:28
Hm, not luck here. I compiled Freetype first, then downloaded XFree from cvs, edited host.conf file, compiled XFree (without any errors), then compiled qt-2.3beta1 (I suppose that is also good one) with -xft option, then compiled whole kde 2.1 from tarballs, then added path to my ttf directory in XftConfig file, then deleted fonts directory in /.kde/share and deleted kdefonts file in /.kde/share/config dir, etc.etc. but nothing happens. I don't have antialiased fonts. When I run
xdpyinfo in konsole I don't have RENDER extension there and I get this: XFree86 version: 4.0.99.1. Is it the right version? I downloaded it from XFree cvs (cvs co xc).
I read all tutorials (I also did: export QT_XFT=true in .xinitrc file in my home dir), but nothing helps. I have Matrox Millenium 450 graphic card. Is it card that is problem?
[ Reply To This | View ]
what should be said
by nonono on Thursday 15/Mar/2001, @19:48
prior to anything is wich driver it works with
i tried a few months ago and recompiled xfree many times in search of my mistake when it was the drivers which were unable to render AA.
no, it's not funny....
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Matt on Thursday 15/Mar/2001, @21:45
For anyone using SuSE 7.1 there is a nice guide here:

www.nadmm.com/show.php?story=articles/aafonts-HOWTO.inc

(Probably useful for people running other distros as well.)
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Erik Hill on Thursday 15/Mar/2001, @22:26
I just wanted to say, that if you are running either on a laptop, or are using a _digital_ LCD screen, then you really should turn sub-pixel rendering on. Add this to your /etc/X11/Xresources (or wherever your dist put it, I'm using Mandrake 8.0beta) and add this somewhere:

Xft:rgba

Anyway, that's it. It makes as big a difference, I think, compared to regular anti-aliasing, as comparing no aa with normal aa.

Erik
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Erik Hill on Thursday 15/Mar/2001, @22:30
I just wanted to say, that if you are running either on a laptop, or are using a _digital_ LCD screen, then you really should turn sub-pixel rendering on. Add this to your /etc/X11/Xresources (or wherever your dist put it, I'm using Mandrake 8.0beta) and add this somewhere:

Xft:rgba

Anyway, that's it. It makes as big a difference, I think, compared to regular anti-aliasing, as comparing no aa with normal aa.

Erik
[ Reply To This | View ]
QT_XFT gets reset to 0!!
by Karl Garison on Friday 16/Mar/2001, @05:15
I'm running Redhat 6.2 with XFree86 4.02 and an RPM of Qt 2.3.0 built with Xft. xdpyinfo lists RENDER extention.

I have the following line in my .Xclients file:

QT_XFT=true

After I start X and display my enviroment variables, I see that this has been changed to:

QT_XFT=0

What gives? I also checked Preferences -> Look & Feel -> Style, and I did not have an option there to enable anti-aliased fonts.

Ideas????


-Karl
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Matthew Vinton on Friday 16/Mar/2001, @11:00
I thought I would slap up my experiences doing this with/ RH 7.0 and binary packages...

see
http://www.vinton-sys.org/kde-antialiasing.htm

and tell me what you think...

[ Reply To This | View ]
libxft - static
by man on Saturday 17/Mar/2001, @03:40
after compiling and installing xfree86 4.0.2 I got only static library libXft.a
how to get shared one? what's wrong?
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Matt on Saturday 17/Mar/2001, @10:37
Well, I finally got it working after recompiling X from source with FreeType2 support enabled. It's wonderful, but Xft is only serving PostScript fonts. xfontsel can see the TrueType fonts, but nothing else can - Gimp, KDE, nothing. Any ideas anyone? I have TrueType working properly using the normal FontPath method and the freetype module, and I did remember to comment out the FontPath line in XF86Config and I did remember to add the dir line in XftConfig. Is there anything special I need to do to the directory beyond the normal ttmkfdir / mkfontdir?
[ Reply To This | View ]
Only non-KDE2 apps are werking -- weird (solved)
by Thomas Stromberg on Sunday 18/Mar/2001, @19:31
Welp, I deinstalled X and everything depending on it today for a fresh start. So I installed: XFree86 4.0.3, Qt 2.3.0 + xft, and KDE 2.1

And a great mystery happened: If I start a normal QT2 app, like qhacc, or avifile/aviplay, it works great. If I try a kde app, watch:

helix@subedei (~)% export QT_XFT=false
helix@subedei (~)% kcalc
(works great!)
helix@subedei (~)% export QT_XFT=true
helix@subedei (~)% kcalc
KCrash: crashing.... crashRecursionCounter = 2
KCrash: Application Name = kcalc path = <unknown>

If this happens to you, or KDE starts blank, do a ktrace on the process -- you will see which TTF file it's trying to read and crashing on. I guess KDE tries to load every font?

Unfortunatly, I had 357 truetype fonts, and I don't yet want to go through them one by one to see what's crashing. The microsoft fonts work great however.. ugh. That was a sick statement to make
[ Reply To This | View ]
How to get bitmap-fonts working when aa is enabled
by Oliver Heins on Monday 19/Mar/2001, @11:54
After all, I got aa working. But: How can I use bitmap-fonts when aa is enabled? I read all the tutorials, but didn't find a hint.
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Mario Giammarco on Tuesday 20/Mar/2001, @12:18
Please help me! I am the last person on earth that does not have antialiasing working!

I have aa in my xterm
I use debian/testing with lastest kde from kde.tdyc.com.
In the docs I read that all packages have AA compiled in.
No old kcmfont etc. All made from scratch
QT_XFT=1 etc.
The only thing missing is a libXft.so. I have only the static libXft.a.
I have a lot of truetype fonts and 3 font servers xfs xfstt xfs-xtt
XftConfig by Keithp

What am I doing wrong?
[ Reply To This | View ]
It nearly works
by Dave on Wednesday 28/Mar/2001, @01:31
I've set everything up nicely now - lovely anti-aliased TT fonts abound, apart from one exception - Konsole. It comes out l i k e t h i s. What's the problem?
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Graham TerMarsch on Wednesday 28/Mar/2001, @11:50
Ok, maybe I'm just missing something here.....

I've downloaded all of the Mandrake 7.2 packages that are listed in the 2.1.1 distributions directory on ftp.kde.org. This includes XFree 4.0.3, qt-2.3.0, and all of kde 2.1.1. I've installed all of these RPMs and thats fine.

But, no matter what I try here, I'll be darned if I can get AA fonts to work properly.

I'm using the latest 0.9.7 NVidia driver, which does support the RENDER extension.

I've tried updating my XF86Config to match the one in the tutorial, updated my XftConfig file accordingly, got the fonts from Keith's site, but still can't get this sucker to work.

Anyone out there either using Mandrake or an NVidia card that's managed to get this to work??
[ Reply To This | View ]
Package to compile to include Look & Feel checkbox
by Joe on Thursday 29/Mar/2001, @11:30
Hey,

I was just wondering if anyone knows which specific SRPM or source tarball would need to be compiling against Xft-enabled QT to enable the Anti-Aliasing checkbox in the Look & Feel section of the control panel.

I am using Mandrake 8.0beta2, and everything is set up fine for anti-aliased text already.

Thanks!
[ Reply To This | View ]
Debugging of XFT (Mandrake problems etc.)
by Josh on Friday 30/Mar/2001, @08:40
Found the following in the XFree86 mailing list "Xpert". Can't try it now, maybe someone else can?

<quote>

> How do I pass/tell Xft I want to see some of the traces
>
> #define XFT_DBG_OPEN 1
> #define XFT_DBG_OPENV 2
> #define XFT_DBG_RENDER 4
> #define XFT_DBG_DRAW 8
> #define XFT_DBG_REF 16
> #define XFT_DBG_GLYPH 32
> #define XFT_DBG_GLYPHV 64
> #define XFT_DBG_CACHE 128
> #define XFT_DBG_CACHEV 256
> #define XFT_DBG_MATCH 512
> #define XFT_DBG_MATCHV 1024

There's an XFT_DEBUG environment variable that you can set to the sum of
any of these values. This is true even in the regular libXft builds.

keithp@keithp.com XFree86 Core Team SuSE, Inc.

</quote>
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Phil Messenger on Saturday 31/Mar/2001, @19:26
The Mandrake XFree86 4.0.3 RPM's are broken in some way with regards to antialiasing. Compiling and installing 4.0.2 RPM's results in fully functional antialiasing. And boy does it look sweet!
[ Reply To This | View ]
Micro-HOWTO: AA & MDK 7.2
by Hervé PARISSI on Thursday 12/Apr/2001, @04:01
1) install the RPMS (there're been some new ones on KDE ftp - libmng, freetype2 and a README)
2) setup everything for AA, at this point it should not work (generally), if it works, you're luckier than me !
3) telinit 3 (or exit XFree if you don't use [kgx]dm)
4) recompile & install freetype2
5) recompile & install Xft or get a working one
6) telinit 5 (or restart XFree if you don't use [kgx]dm)
7) if it's still not working, you're on your own - use your brain :( Make sure your video card supports the RENDER extensions...

AA fonts are really worth the effort of making it works!
[ Reply To This | View ]
Re: Tutorials On Using Anti-Aliased Fonts With KDE
by Richard Varney on Monday 07/May/2001, @09:16
I have a starnge prob with the AA. I follow all the steps in the tutorial and restart kde - the fonts that appear *are* anti-aliased, however i seem to lose half of them!!

They mostly seem to be the M$ fonts stolen from my 'doze installation. They are available to all kde apps with AA set to off, but seem unavailable when AA is on!

Help! Has anyone else had this prob?? Cheers.
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Ahhh, the whole screen feels bigger now." -- Waldo Bastian
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]