Fonts in a KDE application

Andy Fawcett andy at athame.co.uk
Wed Apr 6 09:25:50 BST 2005


Ugh, top posting :(

On Wednesday 06 April 2005 11:04, Albert Astals Cid wrote:
> 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?


Why not just install the fonts in *exactly* the same way as the font is 
installed for konsole?

Leave it to the packagers to adjust this for their own particular packaging 
method, they already have experience of this from the konsole font.

A.



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