package com.bm.savebus.utilerias;

import android.content.Context;
import android.graphics.Typeface;


/**
 * Clase que controla las tipografias
 * @author mikesaurio
 *
 */
public class Fonts {

	public static final int FLAG_BLACK = 1;
	public static final int FLAG_LIGHT = 3;


	private static Context activity;

	public Fonts(Context context) {
		Fonts.activity = context;
	}

	/**
	 * tipo de fuente
	 * @param tipo (int) tipo de la fuente
	 * @return (Typeface) fuente
	 */
	public Typeface getTypeFace(int tipo) {
		Typeface tf = null;
		if (tipo == FLAG_BLACK) {
			tf = Typeface.createFromAsset(activity.getAssets(),
					"fonts/Lato-Bold.ttf");
		}else if (tipo == FLAG_LIGHT) {
			tf = Typeface.createFromAsset(activity.getAssets(),
					"fonts/Lato-Regular.ttf");
		}
		return tf;
	}
}