Code example for Paint

Methods: getTextSize

0
			c = (c + 10) % 12;
			canvas.rotate(30);
		} 
		canvas.drawBitmap(grid, null, outerFrame, null);
		canvas.drawBitmap(shadow, null, outerFrame, null);
	} 
 
	private void drawLabel(Canvas canvas, String label, float r) {
		float d = labelPaint.getTextSize() / 3f - r;
		if (label.length() > 1) {
			// ugly hack to work around unicode spacing problem 
			canvas.drawText(label.charAt(0) + " ", 0, d, labelPaint);
			canvas.drawText(" " + label.charAt(1), 0, d, labelPaint);
		} else { 
			canvas.drawText(label, 0, d, labelPaint);				
		} 
	} 
 
	@Override 
	protected void onSizeChanged(int w, int h, int oldw, int oldh) {
		xCenter = w / 2;