On Wednesday 19 November 2003 10:25, Zarick Lau wrote:
> On Tue, 2003-11-18 at 12:16, Jason Stubbs wrote:
> > On Tuesday 18 November 2003 10:46, Zarick Lau wrote:
> > > On Tue, 2003-11-18 at 06:16, Jason Stubbs wrote:
> > > > * What is the recommended way to set up fonts?
> > >
> > > It depends on what kind of application you are using.
> > > For me, I use GTK+2 based apps most of the time.
> > > All I need to dig is the fonts.conf
> > > It is because pango (which is the main library for text services for
> > > GTK2) will use Xft + fontconfig for reading fonts and rendering text,
> > > and fonts.conf is the config file for fontconfig.
> > > <I believe qt3 do the same too>

I just checked and found that I don't have x11-libs/xft installed, but I do 
have media-libs/freetype (as a dependency of xfree). Which one are you 
referring to when you say Xft +?

> > Hmm, my /etc/fonts/local.conf currently contains:
> > <?xml version="1.0"?>
> > <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> > <fontconfig>
> >         <dir>/usr/share/fonts/mplus</dir>
> >         <dir>/usr/local/share/fonts</dir>
> > </fontconfig>
> >
> > However, arialuni.ttf, which is in /usr/local/share/fonts, didn't show up
> > in kde at all until I fell back to adding everything to
> > /etc/X11/XF86Config. In terms of modules, XF86Config contains:
> > Section "Module"
> >         Load  "dbe"
> >         SubSection "extmod"
> >                 Option      "omit xfree86-dga"
> >         EndSubSection
> >         Load  "type1"
> >         Load  "freetype"
> >         Load  "glx"
> >         Load  "record"
> >         Load  "xtrap"
> >         Load  "speedo"
> > EndSection
>
> Well, that's seem that fontconfig is not used in your setup.
> What version of qt you're using?

Doesn't matter now, but qt is 3.2.3.

> Hmm.. you may want to first check that whether fontconfig has correctly
> find the fonts or not by 'fc-list'
> It is a tools from fontconfig pkg and used to list out all fonts found
> by fc-list (analog to xlsfonts in the xfont world.)

I adding everything to /etc/fonts/local.conf and removing everything from 
XF86Config and it seems to have worked. My guess is that I didn't run 
fontconfig the last time I tried. I take it that command is necessary?

I know that I ran fontconfig, ttmkfdir and any other command I could think of 
on my font directories to get them to work properly between attempting 
fontconfig and now so I must assume that one of them fixed the problem.

> > > For those X baseds apps, the way is mkfontdir, if xf86 is using
> > > freetype module (here freetype module refers to the X font server
> > > module). And as I know freetype is the default module in xf86 ebuild
> >
> > Would fontconfig still be used (once I can get it to work) if I list all
> > fonts in XF86Config as well for any of those non-Xft+ apps?
>
> Most likely not, as I know, apps using client side fonts (Xft +
> fontconfig) is different to use xfonts (Xlib's fontset) at the same
> time.

Ahh, I think you've indirectly answered my question. What I meant was: if both 
are configured, will all applications get the same fonts; even if some apps 
do it through xfree and some through xft +? It seems they do.

> I can however, like pango, using different engine, it have multiple
> rendering engine (wrapper libs) for different platform, but it will not
> use both at the same time.
>
> Similarly, newer version of xterm does the same thing, you can specify
> it to use client side fonts directly (by -fa -fs), OR you can use
> traditional way to use fonts, but not both.

Applications that support multiple font protocols usually default to the best 
one, right?

> > > > * How can I specify which fonts should be alpha-blended and when?
> > >
> > > I think you mean anti-alias, right?
> >
> > Yep, anti-aliasing. I had just woken up and was quite awake yet. ;-)
>
> somethings before, I use something like
>
> <match target="font">
>    <test name="VeraMoit.ttf"></test>
>    <edit name="antialias"><bool>true</bool></edit>
> </match
> <<<
> to explicitly testing the AA for each fonts
>
> I don't know whether I can help ur needs though !

Now that fonts.conf appears to be working, I'll read up on it again and see if 
I can do just one line that'll match all fonts.

> > > Also, you may need to check fonts.conf, the match and edit stuff can
> > > disabled aa for certain, if needed.
> > > thought, it shouldn't be the default case.
> >
> > I have read that too. But seeing I apparantly can't get fontconfig to
> > work, I haven't experimented with the appropriate options yet.
>
> Yes, I always find those option is hardly to experiment, seems some
> options is used by ft2 and some is xft, and I don't know exactly
> how those options is passed through those libs. :)

I'll read up on xft as well, seeing I guess I'm using ft2. Thanks for all your 
help!

> Right, for me to experience qt font stuff, can you recommend me some qt
> based apps which doens't have lots of dep, as my machine has no kde
> setup. I hope I can find out an qt apps but no need to built those kde
> libs. (as I have a PIII 650 laptop on hand..)

I don't really use anything other than kde apps... I did a quick grep through 
portage for ebuilds that reference x11-libs/qt but don't mention kde-dist or 
kde-base/kdelibs. Here are the results:

app-admin/qtsvc
app-admin/partgui
app-crypt/pinentry
app-dicts/kannadic
app-doc/dox
app-doc/qt-docs
app-doc/doxygen
app-misc/chesstask
app-office/lyx
app-office/scribus
app-office/lxbank
app-office/facturalux
app-sci/orsa
app-sci/qcad
app-sci/kunit
app-sci/vstgl
app-sci/xdrawchem
app-sci/pariguide
app-text/djvu
dev-db/tora
dev-db/unixODBC
dev-db/mysqlnavigator
dev-db/mysqlcc
dev-libs/qsa
dev-perl/PerlQt
dev-python/sip
dev-python/PyQt
dev-python/qscintilla
dev-util/eric
dev-util/qtunit
dev-util/xxdiff
dev-util/oprofile
games-board/r-katro
games-emulation/qmamecat
games-puzzle/cuyo
games-roguelike/slashem
games-roguelike/nethack
games-strategy/attal
games-strategy/spacehulk
media-libs/SoQt
media-libs/libmustux
media-sound/ams
media-sound/qjackctl
media-sound/bpmdj
media-sound/mixxx
media-sound/yammi
media-sound/qjackconnect
media-sound/musescore
media-sound/ermixer
media-sound/apollo
media-sound/madman
media-sound/museseq
media-sound/protux
media-sound/ecamegapedal
media-sound/prokyon3
media-sound/hydrogen
media-tv/mythfrontend
media-tv/mythtv
media-video/ati-drivers
media-video/nvclock
media-video/quickrip
media-video/avifile
media-video/camstream
net-dialup/qtwvdialer
net-ftp/easyftp
net-im/kadu
net-misc/knutclient
net-p2p/qtella
net-print/hpoj
net-www/opera
sys-apps/dbus
sys-apps/qtparted
sys-cluster/openmosixview
x11-libs/qt
x11-libs/qwt
x11-libs/qt-embedded
x11-libs/kylixlibs3-borqt
x11-misc/icecc
x11-misc/icesndcfg
x11-misc/bbconf
x11-misc/xfontselector
x11-misc/evolvotron
x11-themes/gentoo-artwork
x11-themes/redhat-artwork

I'm surprised how many there are. I guess most of them will be useless to you 
for what you want but I thought I'd leave that decision up to you.

Best regards,
Jason

--
[EMAIL PROTECTED] mailing list

Reply via email to