Code example for Typeface

Methods: create

0
Typeface family = Typeface.DEFAULT;
			if (face == FACE_MONOSPACE) {
				family = Typeface.MONOSPACE;
			} 
			this.typeface = Typeface.create(family, androidStyle);
		} 
	} 
		 
	private Font( int face, int style, int size ) { 
		this( face, style );
		this.size = size; 
 
		float factor;
		if (size == SIZE_MEDIUM) {
			//#if polish.android.font.MediumFactor:defined 
				//#= factor = ${polish.android.font.MediumFactor}F; 
			//#else 
				factor = 1.2F;
			//#endif