Back to project page Gazetti_Newspaper_Reader.
The source code is released under:
MIT License
If you think the Android project Gazetti_Newspaper_Reader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package in.sahildave.gazetti.news_activities.adapter; /*w w w . j a v a 2 s. c om*/ import android.content.Context; import android.graphics.Typeface; public class RobotoLight { private Context context; private static RobotoLight instance; public RobotoLight(Context context) { this.context = context; } public static RobotoLight getInstance(Context context) { synchronized (RobotoLight.class) { if (instance == null) instance = new RobotoLight(context); return instance; } } public Typeface getTypeFace() { return Typeface.createFromAsset(context.getResources().getAssets(), "Roboto-Light.ttf"); } }