Domanda

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("નર્સિંગ");
È stato utile?

Soluzione 2

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

Thanks

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top