Code example for Typeface

Methods: create

0
		Paint pnt = new Paint();
		String str = "Tube";
 
		pnt.setTextSize(150);
		pnt.setTextAlign(Paint.Align.CENTER);
		pnt.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD));
		canvas.drawText(str, canvas.getWidth() / 2, mLayout.getTop() - 64, pnt);
 
		invalidate();
	} 
 
	public void setProfilePic(Bitmap pic) {
		if (pic == null) {
			pic = mDefaultProfile;
		} 
 
		Bitmap scaledMask = Bitmap.createScaledBitmap(mMaskBitmap,
				pic.getWidth(), pic.getHeight(), true);
 
		Bitmap result = Bitmap.createBitmap(pic.getWidth(), pic.getHeight(),
Connect your IDE to all the code out there  Get Codota for Java