I want to define like that
, used Urdu (Jameel Noori Nastaleeq) font, string define like that <string name="spaces">خوش آمدید</string> in TextView,
ttf = Typeface.createFromAsset(getAssets(),
"fonts/Jameel Noori Nastaleeq.ttf");
tvRandomLabel = (TextView) findViewById(R.id.tvRandomLabel);
tvRandomLabel.setTypeface(ttf);
But after the build application not show the spaces, 
try this unicode "No-BREAK_SPACE":
ttf = Typeface.createFromAsset(getAssets(),
"fonts/Jameel Noori Nastaleeq.ttf");
tvRandomLabel = (TextView) findViewById(R.id.tvRandomLabel);
tvRandomLabel.setTypeface(ttf);
// use this unicode for single space \u00A0
tvRandomLabel.setText(yourtext+"\u00A0"+your text);
more unicodes here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With