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.
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.
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 ?
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()).
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 ?
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.
Re: hindi fonts are not displaying in target
Hi Sangeet,
Please give details how did you achieve it.
Quote:
Originally Posted by
sanjeet
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.
Re: hindi fonts are not displaying in target
try hindi fonts from this website https://hindifonts.org
Re: hindi fonts are not displaying in target