Fonts in a KDE application

David Faure faure at kde.org
Wed Apr 6 21:37:34 BST 2005


On Wednesday 06 April 2005 22:17, Anne-Marie Mahfouf wrote:
> so what we intend to do is 
> 1) during app startup, use QFont to try to load the font
> 2) if it fails, install the font over using kfmclient and kfontinst (all in 
> the code, nothing required from user, nothing in compile time that requires a 
> X server) in fonts:/Personal

Note that there's no point in launching kfmclient from C++ code, just 
use KIO::file_copy() (asynchronous) 
or KIO::NetAccess::copy()/file_copy() (synchronous).

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list