Android Context Get getFAFont(Context context)

Here you can find the source of getFAFont(Context context)

Description

get FA Font

License

Apache License

Declaration

public static Typeface getFAFont(Context context) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {
    private static String font_awesome = "fonts/fontawesome-webfont.ttf";

    public static Typeface getFAFont(Context context) {
        Typeface tf = Typeface.createFromAsset(context.getAssets(),
                font_awesome);//w  w w . j  a va 2s.c o  m
        return tf;
    }
}

Related

  1. getDpiToPix(Context ctx)
  2. getEditor( Context ctx)
  3. getExternalCacheDir(Context context)
  4. getExternalCacheDir(Context context)
  5. getExternalCacheDir(Context context)
  6. getFiles(Context context, String ext)
  7. getFromAssets(Context con, String fileName)
  8. getHelpUrl(Context context, String s)
  9. getImei(Context context, String imei)