Results 1 to 2 of 2

Thread: Adding NEW FONT

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

    Question 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

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Adding NEW FONT

    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Adding NEW FONT
    By praveen_g in forum Newbie
    Replies: 3
    Last Post: 13th November 2009, 08:51
  2. Showing font symbols
    By drhex in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2009, 21:53
  3. font can not be changed
    By ashishsaryar in forum Qt Programming
    Replies: 4
    Last Post: 28th May 2008, 15:32
  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
  •  
Qt is a trademark of The Qt Company.