Code example for Typeface

Methods: create

0
		 
		paint = new Paint();
		paint.setAntiAlias( true );
		paint.setColor( Color.argb( isEnabled() ? 255 : 127, 255, 255, 255 ) );
		paint.setTextSize( inFontSize );
		paint.setTypeface( Typeface.create( Typeface.SANS_SERIF, Typeface.BOLD ) );
		 
		return paint;
	} 
	 
	public void setText( String inTextLine1, String inTextLine2 ) {
		int					n;
		Paint				paint;
		String				prefix, text;
 
		paint = getTextPaint( inTextLine2 == null ? kSingleLineFontSize : kDoubleLineFontSize );
		 
		text = prefix = inTextLine1;
		n = prefix.length();
		 
Connect your IDE to all the code out there  Get Codota for Java