Code example for Typeface

Methods: create

0
 
	@Override 
	protected void onCreateResources() { 
		mFont = FontFactory.create(this.getFontManager(),
				this.getTextureManager(), 256, 256,
				Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32);
		mFont.load();
	} 
 
	@Override 
	protected Scene onCreateScene() { 
		mEngine.registerUpdateHandler(new FPSLogger()); 
		mCurrentScene = new SplashScene();
		return mCurrentScene;
	} 
 
	// to change the current main scene 
	public void setCurrentScene(Scene scene) {
		mCurrentScene = null;
		mCurrentScene = scene;
		getEngine().setScene(mCurrentScene);