Java tutorial
//package com.java2s; //License from project: Apache License import android.content.res.AssetManager; import android.graphics.Typeface; import android.widget.TextView; public class Main { /** * Sets Roboto Light Italic font for a given text view. * @param textView * @param assetManager */ public static void setRobotoLightItalic(TextView textView, AssetManager assetManager) { textView.setTypeface(Typeface.createFromAsset(assetManager, "font/Roboto-LightItalic.ttf")); } }