Hi,
My laptop serious crashed, so I just get my files from the old harddisk
in this day, in case you still find the answer, hope I can help out a
bit :)
在 2003-11-19 Wed 的 15:47, Jason Stubbs 写道:
> On Wednesday 19 November 2003 13:47, Zarick Lau wrote:
> > 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?
>
> Hmmm, I was thinking that it was because I hadn't run some magic command on
> the appropriate directories. I thought that magic command was fontconfig, but
> now I can't seem to find it. Is it fc-cache?
>
> Let me ask a more general question:
> If I want a fresh install of X to make use fonts I have placed
> in /usr/local/share/fonts via xft, how do I do it?
Start from libXft.so.2, xft use fontconfig to query fonts and locate
fonts in the system. Hence, again part of the answer is /etc/fonts.conf
(and the fans)
For more traditional approach (or failsafe approach), you would want to
run some commands to generate the fonts.dir in
/usr/local/share/fonts/.../
Each fonts.dir for each directory which contains a font file.
Usually you also need to setup fonts.alias.
In my case, I have do these work (create fonts.{dir,alias}) for a long
time, as most of the time, the apps use gtk/qt which has fully adopted
the fontconfig approach.
but in the 'old' time, when needed, I used to generate the fonts.dir
with ttmkdir to generate fonts.scale, then 'cp fonts.scale fonts.dir'
and hand craft the fonts.dir for myself.
for the fonts.alias, I use some simple shell script to make it by self.
FYI:
fonts.dir is used to map a physical font file to a logical fonts for the
X server. (so for e.g. X know where to read a fonts file for
-misc-fixed-....-iso8859-1)
fonts.alias is used to map alias for fonts
(for e.g. makeing a set of -misc-default-XXXXX-XXX-XX..., then the whole
system can use the 'default' font more easily, practically, it is really
so hard to arhieve good result though)
fonts.scale, I forget the function of this file already, but seems it is
not directly consumed by X.
Also, if my memory correct, there is a few different 'version' of
ttmkdir floating around the net. Because ttmkdir output fonts.scale, it
need to generate good output for the corresponding font server, anyway,
hope that it is the case now :)
>
> Whatever step I missed in the answer will be the reason why I couldn't get
> fonts to work correctly before. I doubt that it was a qt3 issue at all.
>
> Regards,
> Jason
>
> --
> [EMAIL PROTECTED] mailing list
>
Regards,
Zarick
--
[EMAIL PROTECTED] mailing list