From kde-core-devel Fri Apr 01 00:47:01 2005 From: Anne-Marie Mahfouf Date: Fri, 01 Apr 2005 00:47:01 +0000 To: kde-core-devel Subject: Re: Fonts in a KDE application Message-Id: <200503311947.01509.annemarie.mahfouf () free ! fr> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=111231642406885 On March 31, 2005 05:24 pm, Kurt V. Hindenburg wrote: > On Thursday 31 March 2005 10:03 am, Anne-Marie Mahfouf wrote: > | Hi all, > | > | For KDE-Edu fancyness we would like to use specific fonts in some > | applications. We are thinking in making the Makefile.am install the new > | font (it's very easy and the user can install it locally or system-wide). > > Not to hijack this thread as I'm not sure if Anne-Marie was asking about > this exactly, but in Konsole we install the console bitmap font in > $KDEDIR/share/fonts. In order for those fonts to show up in the > KFontDialog, the user must first install them via KControl->System > Administor->Font Installer (I've thrown up simple instruction on > konsole.kde.org). Is there a way to automatic at installation time or at > KDE init? My question was in 2 parts, one is cleared about freedom and the GPL. The other is about the install. We thought we would install it with the following in the Makefile.am (in a fonts subdir) install: font_name.ttf kfmclient copy font_name.ttf fonts:/ It works well for our purpose (I was quite amazed by the easiness and the neat dialogue, very friendly in my opinion) and then the font is called in the program (if it's not there, Qt will default it to something else). The font can also be used from any KDE font dialog. No need to be root if you install in Personal. But packagers (we had a nice debate on IRC) pointed out that for building RPMs it's not the best so we'll have to see how to do it. For packagers, it would be easier to make a separate font package. For example kdeedu-fonts. So at the moment we're a bit stuck here. Not sure if that helps, Anne-Marie