How to use punjabi font in android app?

hi I want to develop an application in which I want to use punjabi text. But my emulator does not show punjabi text. Is there any api or something else so that my emulator can show punjabi text or offer me another way to implement punjabi language in my application.

Thanks in advance.

+3
source share
3 answers

You can use custom TrueType fonts by copying the .ttf file to your project assets folder.

Then in your application, you can use the font as follows:

final Typeface customF = Typeface.createFromAsset(this.getAssets(), "custom.ttf");
final TextView textV = (TextView) findViewById(...);
textV.setTypeface(customF);

However, I had so many problems using TrueType fonts, so you could try spending a real life with your font (pubjabi).

+1
Typeface font = Typeface.createFromAsset(getAssets(), "bulara_5.ttf");  
text.setTypeface(font);  
text.setText("ਪੰਜਾਬੀ");

OSv 2.1

, : http://homepage.ntlworld.com/paul-grosse/bulara.zip

+2

I do not think Android 2.3 supports punjabi font. Therefore, you see these fields.

Follow this thread to find out when your favorite language will be supported. I heard that Android devices for Android support some Indian regional fonts.

0
source

All Articles