In android, you can define your own custom fonts for the strings in your application. You just need to download the required font, and then place it in assets/fonts folder. You can access it in your java code through Typeface class.
- Use setTypeface() method
TextView textView = (TextView) findViewById(R.id.TextView1);
Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/font name.ttf");
textView.setTypeface(custom_font);
Comments
Post a Comment