Urdu font in textview

后端 未结 3 1967
一个人的身影
一个人的身影 2020-12-18 04:42

\"enter

i have set urdu in textview and apply urdu typeface

3条回答
  •  醉酒成梦
    2020-12-18 04:53

     Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/burnstown_dam.otf");
        TextView tv = (TextView) findViewById(R.id.CustomFontText);
        tv.setTypeface(tf);
    
    
    Typeface tf1 = Typeface.createFromAsset(this.getAssets(), "fonts/Jameel Noori Nastaleeq       Urdu.ttf"");
        TextView textView = (TextView)findViewById(R.id.CustomFontText);
        textView.setTypeface(tf1);
        textView.setText("یہ انگریزی نہیں");
    

提交回复
热议问题