Cannot display Hindi Fonts in Flex Mobile Application

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot display Hindi Fonts in Flex Mobile Application

Ash1703
Hello Developers,

I have been working on a mobile application using flex, where i need to display text in both English and Hindi languages. The field values retrieved from the database can be in English or Hindi at any instance.
It is working fine on Windows while i run it on simulator, but somehow boxes are shown on IOS and android devices.
I am kind of stuck here and would wish help from someone.

Looking forward to hear from you.


Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Cannot display Hindi Fonts in Flex Mobile Application

Paul Hastings
On 6/30/2014 4:36 PM, Ash1703 wrote:
> It is working fine on Windows while i run it on simulator, but somehow boxes
> are shown on IOS and android devices.

w/out any other info, my guess is likely a font issue. do the devices have fonts
that can display english/hindi? if not you'll probably have to bundle fonts
w/the app.



Reply | Threaded
Open this post in threaded view
|

Re: Cannot display Hindi Fonts in Flex Mobile Application

Ash1703
Hi Paul,

Thank you for a quick response.
Say if the devices doesn't support the fonts
how am i suppose to embed fonts into the application.
It will be great if you can share a code or a reference.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Cannot display Hindi Fonts in Flex Mobile Application

Paul Hastings
Reply | Threaded
Open this post in threaded view
|

RE: Cannot display Hindi Fonts in Flex Mobile Application

Prabhu Moorthy
In reply to this post by Ash1703
Embed the font in CSS,

Set embedAsCFF: true for Label
@font-face {
        src: url("assets/fonts/hindi.ttf");
        fontFamily: "hindicff";
        embedAsCFF: true;
}

Set embedAsCFF: false for Button, List and other components
@font-face {
        src: url("assets/fonts/hindi.ttf");
        fontFamily: "hindi";
        embedAsCFF: false;
}

Thanks & Regards,
M.Prabhu



Office: +91 80 3307 1909 | Mobile: +91 9590100761
[hidden email]

-----Original Message-----
From: Ash1703 [mailto:[hidden email]]
Sent: Monday, June 30, 2014 5:31 PM
To: [hidden email]
Subject: Re: Cannot display Hindi Fonts in Flex Mobile Application

Hi Paul,

Thank you for a quick response.
Say if the devices doesn't support the fonts how am i suppose to embed fonts into the application.
It will be great if you can share a code or a reference.

Thanks




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Cannot-display-Hindi-Fonts-in-Flex-Mobile-Application-tp7068p7071.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Thanks & Regards,
M.Prabhu
Reply | Threaded
Open this post in threaded view
|

RE: Cannot display Hindi Fonts in Flex Mobile Application

Ash1703
Thanks Paul and Prabhu..!!


It worked, It was more of a concern with UNICODE support in the fonts.
Mangal.ttf supports Unicode and it worked with it. However i have tested in on Android and will be testing it on IOS in a couple of hours. Hope it works over there.

Thanks for the help..!!
Reply | Threaded
Open this post in threaded view
|

Re: Cannot display Hindi Fonts in Flex Mobile Application

dumoac
In reply to this post by Ash1703
try  hindi fonts <https://hindifonts.org/>   from this website.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/