From e044aed11d8982398fa556eacde9af1003af1c5a Mon Sep 17 00:00:00 2001 From: lado Date: Thu, 2 Nov 2017 10:41:17 +0100 Subject: refactor vdrmanager -> de.bjusystems.vdrmanager --- .../main/java/de/androvdr/widget/FontAwesome.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java (limited to 'vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java') diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java new file mode 100644 index 0000000..77d7c07 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java @@ -0,0 +1,25 @@ +package de.androvdr.widget; + +import android.content.Context; +import android.graphics.Typeface; + +/** + * Created by lado on 04.05.15. + */ +public class FontAwesome { + + private static Typeface mFont; + + + public static Typeface getFontAwesome(Context context){ + + if(mFont != null){ + return mFont; + } + + mFont = Typeface.createFromAsset(context.getAssets(), "fonts/fontawesome-webfont.ttf"); + return mFont; + } + + +} -- cgit v1.2.3