Urdu font in textview

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

\"enter

i have set urdu in textview and apply urdu typeface

相关标签:
3条回答
  • 2020-12-18 04:51

    For Regional languages you need to read them as UTF-8 and then set the font.

    I have followed the below steps and working fine.

    1. Copy the sample URDU text in ms-word. Check the font of it.

    2. Copy the font in assets.

    3. While setting the textview text read it as UTF-8
    4. Apply the font from Assets.
    0 讨论(0)
  • 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("یہ انگریزی نہیں");
    
    0 讨论(0)
  • 2020-12-18 04:56

    Asaalam-o-alakum bibi Tahira You can downlaod urdu Font from this link,i have tested it.

    Thanks

    0 讨论(0)
提交回复
热议问题