Fonts in a KDE application

Albert Astals Cid astals11 at terra.es
Wed Apr 6 09:04:42 BST 2005


kfmclient copy <font_name>.ttf fonts:/System/
works in my system, probably because i have 
        <dir>/usr/share/fonts</dir>
on my /etc/fonts/fonts.conf and needs no extra command and no reboot.

About the installing thing i've been thinking the "best" way can be that 
"make install" installs the fonts to $appdata/fonts and then on starting the 
program for first time it does 
kfmclient copy $appdata/fonts/<font_name>.ttf fonts:/System/
that gives us a problem with space because fonts are found twice in the system 
but i suppose that makes life easier for packagers?

Albert


A Dimecres 06 Abril 2005 09:48, James Richard Tyrer va escriure:
> Anne-Marie Mahfouf wrote:
> > On April 1, 2005 12:02 pm, Leo Savernik wrote:
> >>Am Freitag, 1. April 2005 02:47 schrieb Anne-Marie Mahfouf:
> >>>install: font_name.ttf
> >>>        kfmclient copy font_name.ttf fonts:/
> >>
> >>Please never ever make any part of the build process depend on a GUI
> >>application.
> >>
> >>mfg
> >>	Leo
> >
> > mfg?
> > and what do you suggest then please?
>
> I find that on my system that:
>
> 	kfmclient copy <font_name>.ttf fonts:/System/
>
> copys the file to "$KDEDIR/share/fonts" which doesn't seem correct to
> me.  And, it didn't update the Fontmap file in the directory.
>
> Are there bugs in KFontInst again??
>
> IAC, if you copy the font file to "$KDEDIR/share/fonts/TTF" then
> FontConfig should find it if the system is set up correctly.  But, I
> found that on my system I needed to have:
>
> 	fc-cache
>
> in my: "rc.local" script for it to find new fonts and that requires a
> reboot -- too much like Windows. :-\
>
> I don't know how to make FontConfig do a rescan except to run [as root]:
>
> 	fc-cache
>
> So, there are unanswered questions.  But, at least I know what I don't
> know about this.




More information about the kde-core-devel mailing list