get Frutiger Bold - Android android.graphics

Android examples for android.graphics:Typeface

Description

get Frutiger Bold

Demo Code

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

public class Main {

  static Typeface typefaceFrutigerBold;

  public static final Typeface getFrutigerBold(Context ctx) {
    if (typefaceFrutigerBold == null) {
      typefaceFrutigerBold = Typeface.createFromAsset(ctx.getAssets(), "fonts/FrutigerLTStd-Bold.ttf");
    }//from ww w .  j  a  va2s.c om
    return typefaceFrutigerBold;
  }

}

Related Tutorials