2014-01-06 1 views
3

나는, 텍스트 뷰의 해당 <string name="spaces">خوش آمدید</string> 같이 정의 우르두어 (Jameel 누리 Nastaleeq) 글꼴, 문자열을 사용하는 enter image description here처럼 안드로이드에서 우르두어 (Jameel Noori Nastaleeq) 글꼴의 공백을 정의하는 방법은 무엇입니까?

ttf = Typeface.createFromAsset(getAssets(), 
      "fonts/Jameel Noori Nastaleeq.ttf"); 

tvRandomLabel = (TextView) findViewById(R.id.tvRandomLabel); 
    tvRandomLabel.setTypeface(ttf); 

그러나 빌드 응용 프로그램이 공백을 표시하지 후

, enter image description here

+0

khush를 큰 따옴표 안에 넣으십시오! –

+0

나는 답을 모른다. 그냥 글꼴 이름이 훌륭하다고 말하고 싶습니다 : P – NightFury

+0

@Muhammad Babar 이미 문자열 에 정의되어 있습니다.

답변

3

시도를 정의 할 이 유니 코드 "아니-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); 

더 unicodes here.

관련 문제