Android Context Get getTCBoldFont(Context context)

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

Description

get TC Bold Font

License

Apache License

Declaration

public static Typeface getTCBoldFont(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_bold = "fonts/OpenSans-CondBold.ttf";

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

Related

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