diff options
author | lado <herrlado@gmail.com> | 2017-11-02 10:41:17 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2017-11-02 10:41:17 +0100 |
commit | e044aed11d8982398fa556eacde9af1003af1c5a (patch) | |
tree | 3a09298670b27b551c072782f410b43bf966b2c0 /vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java | |
parent | 049975cbda6327aae542bac5dd1acd6fe97d18a4 (diff) | |
download | vdr-manager-e044aed11d8982398fa556eacde9af1003af1c5a.tar.gz vdr-manager-e044aed11d8982398fa556eacde9af1003af1c5a.tar.bz2 |
refactor vdrmanager -> de.bjusystems.vdrmanager
Diffstat (limited to 'vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java')
-rw-r--r-- | vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java | 25 |
1 files changed, 25 insertions, 0 deletions
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; + } + + +} |