문제

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