How android set custom font in canvas?

view story

http://stackoverflow.com – hi i want to change my font size by using paint , canvas in android. My code is here. how can i do this ? public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } Canvas canvas = new Canvas(); Typeface tf = Typeface.createFromAsset(getAssets(), "RECOGNITION.ttf"); Paint paint = new Paint(); paint.setTypeface(tf); canvas.drawText("Lorem ipsum", 0, 0, paint); } } can any body help me to solve problem ? i read some tutorials but not under s (HowTos)