Code example for Typeface

Methods: create

0
		mDayOfMonth = dayOfMon;
		mBound = rect;
		 
		mPaint.setTextSize(textSize/*26f*/);
		mPaint.setColor(Color.BLACK);
		Typeface font = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD);
		mPaint.setTypeface(font);
		if(bold) mPaint.setFakeBoldText(true);
		 
		mLinePaint.setColor(Color.GRAY);		
		 
		dx = (int) mPaint.measureText(String.valueOf(mDayOfMonth)) / 2;
		dy = (int) (-mPaint.ascent() + mPaint.descent()) / 2;
	} 
	 
	public DayCell(int dayOfMon, Rect rect, float textSize) {
		this(dayOfMon, rect, textSize, false);
	} 
	 
	public Boolean getHasImage()
Connect your IDE to all the code out there  Get Codota for Java