summaryrefslogtreecommitdiff
path: root/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2017-11-02 10:41:17 +0100
committerlado <herrlado@gmail.com>2017-11-02 10:41:17 +0100
commite044aed11d8982398fa556eacde9af1003af1c5a (patch)
tree3a09298670b27b551c072782f410b43bf966b2c0 /vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java
parent049975cbda6327aae542bac5dd1acd6fe97d18a4 (diff)
downloadvdr-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.java25
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;
+ }
+
+
+}