Android Context Get getTCFont(Context context)

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

Description

get TC Font

License

Apache License

Declaration

public static Typeface getTCFont(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 fontPath = "fonts/OpenSans-CondLight.ttf";

    public static Typeface getTCFont(Context context) {
        Typeface tf = Typeface.createFromAsset(context.getAssets(),
                fontPath);/*from   w w w . j a v  a2  s  . c  o m*/
        return tf;
    }
}

Related

  1. getString(Context context, int resourceId)
  2. getStringFromResource(int resource, Context context)
  3. getStringResourceByName(String aString, Context context)
  4. getSystemDiskCacheDir(Context context)
  5. getTCBoldFont(Context context)
  6. getTCItalicFont(Context context)
  7. getTempFile(Context context)
  8. getTimestamp(Context context)
  9. getTypeface(Context context, String name)