S Softflow Systems Member Licensed User Longtime User Jan 18, 2014 #1 I want to use Devnagri i.e. Hindi font which are in android dev kit . I used the following code as given elsewhere but it is showing english font in emulator as well as device myfont = Typeface.LoadFromAssets("DroidSansDevanagari-Regular.ttf") If myfont.IsInitialized = TrueThen Label1.Typeface = myfont Label1.Text = "this is a test" Else ToastMessageShow("not initialized",True) EndIf The font is getting initialised but still the label is displaying this is a test in english font and not the devnagri font Attachments DroidSansDevanagari-Regular.zip DroidSansDevanagari-Regular.zip 48.1 KB · Views: 345
I want to use Devnagri i.e. Hindi font which are in android dev kit . I used the following code as given elsewhere but it is showing english font in emulator as well as device myfont = Typeface.LoadFromAssets("DroidSansDevanagari-Regular.ttf") If myfont.IsInitialized = TrueThen Label1.Typeface = myfont Label1.Text = "this is a test" Else ToastMessageShow("not initialized",True) EndIf The font is getting initialised but still the label is displaying this is a test in english font and not the devnagri font
NJDude Expert Licensed User Longtime User Jan 18, 2014 #2 That font file doesn't contain Hindi characters. HERE is a site that contains what you're looking for. Upvote 0
That font file doesn't contain Hindi characters. HERE is a site that contains what you're looking for.
S Softflow Systems Member Licensed User Longtime User Jan 18, 2014 #3 The above font when intalled in Windows is working properly and all hindi characters are coming properly. Upvote 0
The above font when intalled in Windows is working properly and all hindi characters are coming properly.
NJDude Expert Licensed User Longtime User Jan 18, 2014 #4 Well, if I click on the font you posted THIS is what I see, no hindi characters. Upvote 0
S Softflow Systems Member Licensed User Longtime User Jan 18, 2014 #5 OK EREL I found one font which worked from the site you gave. Thanks! Upvote 0
NJDude Expert Licensed User Longtime User Jan 18, 2014 #6 I don't know if you've noticed, but, I'm not Erel Upvote 0
S Softflow Systems Member Licensed User Longtime User Jan 18, 2014 #7 sorry NJDude, Thanks once again Upvote 0