Results 1 to 4 of 4

Thread: Adding NEW FONT

  1. #1
    Join Date
    Nov 2009
    Posts
    29
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Wink Adding NEW FONT

    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
    Last edited by praveen_g; 13th November 2009 at 06:05.

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Adding NEW FONT

    mmmh... I don't fully understand. Do you want your application to translate a text and insert it after in your text field?

  3. #3
    Join Date
    Nov 2009
    Posts
    29
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Adding NEW FONT

    I mean when I write something in TextEdit it has to print the language that I have chosen from the dynamic menu.

  4. #4
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Adding NEW FONT


Similar Threads

  1. Showing font symbols
    By drhex in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2009, 21:53
  2. Font size calculation when painting in a QImage
    By Ishark in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 22:22
  3. Automatic font selection
    By NTwoO in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 27th April 2007, 12:40
  4. Font not Antialiasing
    By ChasW in forum Qt Programming
    Replies: 6
    Last Post: 21st January 2007, 18:12
  5. Qt renders wrong font
    By durbrak in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2006, 14:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.