public class

FontFactory

extends Object
java.lang.Object
   ↳ org.anddev.andengine.opengl.font.FontFactory

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
FontFactory()
Public Methods
static Font create(ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor)
static Font createFromAsset(ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor)
static StrokeFont createStroke(ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor)
static StrokeFont createStroke(ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor, boolean pStrokeOnly)
static StrokeFont createStrokeFromAsset(ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor)
static StrokeFont createStrokeFromAsset(ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor, boolean pStrokeOnly)
static void reset()
static void setAssetBasePath(String pAssetBasePath)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FontFactory ()

Public Methods

public static Font create (ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor)

public static Font createFromAsset (ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor)

public static StrokeFont createStroke (ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor)

public static StrokeFont createStroke (ITexture pTexture, Typeface pTypeface, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor, boolean pStrokeOnly)

public static StrokeFont createStrokeFromAsset (ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor)

public static StrokeFont createStrokeFromAsset (ITexture pTexture, Context pContext, String pAssetPath, float pSize, boolean pAntiAlias, int pColor, float pStrokeWidth, int pStrokeColor, boolean pStrokeOnly)

public static void reset ()

public static void setAssetBasePath (String pAssetBasePath)

Parameters
pAssetBasePath must end with '/' or have .length() == 0.