Issue
I have a word doc with Nepali translation for an app I am working on.
The word doc looks something like this.
When I try to copy paste the Nepali string, I can't paste the correct string. Something like this gets copied :- kIf3ftsf] lrGxx? s] x'g <
I know it's because of the font issue but is there any fix for this ? I want to copy paste the exact same string into android studio but I can't even copy the exact same string in google translate or browser. It changes into gibberish.
Solution
I have faced the same problem. What you can do is you can add the Nepali font by this method.
TextView tx=(TextView)findViewById(R.id.textview1);
Typeface custom_font = Typeface.createFromAsset(getAssets(),"fonts/nepali.TTF");
tx.setTypeface(custom_font);
Just copy the font in assets folder and copy the Nepali translation in the text box after building the APK the translation will work as desired.
Answered By - OhhhThatVarun
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.