PDA

View Full Version : Adding NEW FONT



praveen_g
13th November 2009, 06:08
Hi,

Im a newbie to QT. I have started with an application, where in different languages can be typed in to the textEdit field of the application by choosing from the menu. The menu has been dynamically created from the list of (.ttf) files in a directoy

QString Hfontpath = "C:/Users/praveen_g/Documents/QtProjects/Linguist/Fonts/Hindi";
QString extn = "*.ttf";
QDir Hdirectory = QDir(Hfontpath);
QStringList HFfiles;

so when I select a ( .ttf ) file from menu, I should be able to write in that language in the textEdit field. How do I go about it ? can somebody help me

Im using QT 4.5.3( Windows and Linux / X11)

thanks and regards :confused::confused:

high_flyer
13th November 2009, 10:25
Please don't cross post!
http://www.qtcentre.org/forum/f-qt-programming-2/t-fonts-from-specific-directory-25638.html