On Wed, 2003-11-19 at 11:16, Jason Stubbs wrote:
> 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 +?

from xfree 4.3 libXft is included in official xfree distro. so
$ qpkg -l xfree | grep Xft

(ps: freetype is only a great lib to handle the physical font file, and
fontconfig provide functions for matching fonts, and xft provide a
little bit higher level wrapper to render text, i.e. actually drawing
'ABC' on a window)

> 
> > > 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.

I can sure that ttmkfdir is nothing to do with fontconfig, ttmkfdir is
just yet another alternative for mkfontdir / mkfontscale.
i.e. create fonts.dir for X server (or X font server)

anyway seems that you finally make.

If you can figure out what's happen inside qt / kde in your previous
problem, share with me, ok?

Regards,
Zarick



--
[EMAIL PROTECTED] mailing list

Reply via email to