Code example for Typeface

Methods: create

0
	public void setBold(boolean bold)
	{ 
		if (bold) {
			paint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD));
		} else { 
			paint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL));
		} 
	} 
 
 
	public void setVisibility(int visibility) {
		this.visibility = visibility;	
	} 
	 
	 
	private void invalidate() 
	{ 
		updateTexture = true;
	} 
 
Experience pair programming with AI  Get Codota for Java