How can we get the list of available font in the system?
-
I have tried @QFontDatabase::families (QFontDatabase::Any);@ in linux but i am getting different list including some of the fontlist.
I am not getting the list of all the avaiable font. -
can u explain it little more
-
[quote author="cdeepak" date="1329721649"]can u explain it little more[/quote]
Before setting any font i want to know the list of font available in the system. I have tried the above specified code to check the "calibri" font is available in the list or not. but it was not available in the list but when i set the calibri font through code the font was set that means the font is available but it is not showing in the list.
-
http://developer.qt.nokia.com/doc/qt-4.8/qfontdatabase.html.
bq. The most common uses of this class are to query the database for the list of font families() and for the pointSizes() and styles() that are available for each family. An alternative to pointSizes() is smoothSizes() which returns the sizes at which a given family and style will look attractive. -
Hi,
u can use the QFontDialog to set the font ref this @http://developer.qt.nokia.com/doc/qt-4.8/qfontdialog.html@