Results 1 to 9 of 9

Thread: hindi fonts are not displaying in target

  1. #1
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default hindi fonts are not displaying in target

    Hi,

    I am working on multi-lingual application.

    I have to display hindi font(or any other indian language) in place of english, in my application.
    Like text on pushbutton, label or message should be in hindi.

    I am able to do it in desktop version, but it's not displaying in target device.
    my target device is ARM-based, Linux platform.

    i am using qt's translator for this application(lupdate, linguist, lrelease).

    I think, i am missing some font configuration file, or font file in target device.

    I have copied same font file from /usr/share/ and /etc/ from desktop to target device in same directory.
    But still i am unable to display Hindi text in my target device.

    Can you help me anybody..... what are the things exactly, i am missing in target device.... ?
    or what i have to do for displaying hindi text in target device.

    thanks in advance.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: hindi fonts are not displaying in target

    Your target device has to have, and you need to use, a font that contains the glyphs corresponding to the Hindi Unicode code points. Depending the font capabilities of the embedded system you may be able to use the same font file as your desktop (within license limits): embed it in your application resources and use QApplication::setFont() or similar as required. Windows, I think, uses a font called Mangal but you are not free to distribute this.

  3. The following user says thank you to ChrisW67 for this useful post:

    sanjeet (30th March 2012)

  4. #3
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: hindi fonts are not displaying in target

    Hi Chris,

    thanks for your suggestion, but i am still having doubt that... where(in which directory) i have in copy Hindi font.
    And any configuration file is also requried ?

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: hindi fonts are not displaying in target

    The font needs to be where X11 (or whatever stands in for it on your device) looks for fonts. It may require a configuration file change, or it may not.

    Alternatively, you can embed the actual font file in your application as I said before (see QFontDatabase::addApplicationFont()).

  6. The following user says thank you to ChrisW67 for this useful post:

    sanjeet (3rd April 2012)

  7. #5
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: hindi fonts are not displaying in target

    Hi Everybody....

    I am able to show text in other western language( like Polish, Finnish, Turkish, Italian, French, German, Spanish etc) in my application(on QLabel, QPushButton etc)
    on both for desktop as well as target-device.

    But when i am using Hindi text it's only displaying on desktop version, it's not displaying on my target device.

    can you explain me ...... what's problem ?

  8. #6
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: hindi fonts are not displaying in target

    Hi chris,

    Thanks for your great help.

    Many many thanks to you.

    Now i am able to display Hindi text in my application my target-device.

  9. #7
    Join Date
    Nov 2014
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: hindi fonts are not displaying in target

    Hi Sangeet,

    Please give details how did you achieve it.



    Quote Originally Posted by sanjeet View Post
    Hi chris,

    Thanks for your great help.

    Many many thanks to you.

    Now i am able to display Hindi text in my application my target-device.

  10. #8
    Join Date
    Jul 2018
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: hindi fonts are not displaying in target

    try hindi fonts from this website https://hindifonts.org

  11. #9
    Join Date
    Feb 2019
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: hindi fonts are not displaying in target

    thanks for information

Similar Threads

  1. What to target on Mac OS X? 32-bit and/or 64-bit?
    By agarny in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2011, 13:49
  2. QLabel unable to show Hindi Text from *.qm file
    By jyotinder in forum Qt Programming
    Replies: 1
    Last Post: 27th December 2010, 10:10
  3. Displaying Chnise fonts in GUI
    By yuvarajragupathi in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2010, 05:12
  4. qmake-qt4 & TARGET
    By !Ci in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2006, 22:34

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.