سؤال

I have created an android app, in that I want to set Gujarati joint word.

I use Shruti.ttf font.

I want to print -

નર્સિંગ

But it prints-

નર્ સંગિ

So, how to print proper.

My code is -

TextView tv_guj=(TextView)findViewById(R.id.tv_gujarati);
Typeface font = Typeface.createFromAsset(getAssets(), "Shruti.ttf");
tv_guj.setTypeface(font);
tv_guj.setText("નર્સિંગ");
هل كانت مفيدة؟

المحلول 2

you can use terafont of gujarati Fontface so it will be implemented.

Thanks

نصائح أخرى

Please try this sample and copy your text to this sample text view it will work and will show proper result as you want

https://www.dropbox.com/s/6pqg9otcli038ij/HindiFont.zip

Lohit-Gujarati font is working

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top