Useful library to use custom fonts in your android app

Related tags

UI/UX EasyFonts
Overview

alt tag

EasyFonts

Android Arsenal License

A simple and useful android library to use custom fonts in android apps without adding fonts into asset/resource folder.Also by using this library developer should not have to worry about Typeface object creation for every new font that he use.

EasyFonts will handle all this for you.

###Type of fonts available:

alt tag

Getting Started

Installation

Add gradle dependency with command:

dependencies {
        compile 'com.vstechlab.easyfonts:easyfonts:1.0.0'
    }

for Maven:

repositories {
    maven {
        url 'https://dl.bintray.com/vsvankhede/maven/'
    }
}
dependencies {
        compile 'com.vstechlab.easyfonts:easyfonts:1.0.0'
    }

Usage

You can set number of font face provided by EasyFont to your TextView by passing EasyFonts.yourFont(Context context) to setTypeface().

TextView tv_hello = (TextView) findViewById(R.id.tv_hello);
tv_hello.setTypeface(EasyFonts.robotoThin(this));

You can also check sample project created in app directory.

Version: 1.0.0

Stable release

License

Copyright 2016, Vijay Vankhede

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Bitdeli Badge

You might also like...
Set custom font in Android application

MagicViews Provides a simple way to set custom font in Android application. Adding to your project Add the library as a dependency to your build.gradl

A beautiful Android custom View that works similar to a range or seekbar. With animations.
A beautiful Android custom View that works similar to a range or seekbar. With animations.

ValueBar A beautiful Android custom View that works similar to a range or seekbar. Selection by gesture. With animations. Supporting API level 11+. De

An android custom view that displays a circle with a colored arc given a mark
An android custom view that displays a circle with a colored arc given a mark

MarkView An android custom view that displays a circle with a colored arc given a mark. Usage Add as a dependency compile 'com.github.xiprox.markv

Custom UI control for android which is showing data as a segments and a value inside them.
Custom UI control for android which is showing data as a segments and a value inside them.

Segmented Bar View for Android Custom UI control for android which is showing data as a segments and a value inside them. Screenshots Install From rep

This is a android custom view , like a scratch card effect!
This is a android custom view , like a scratch card effect!

ScratchView This is a android custom view , like a scratch card effect! Last Update 采纳DearZack童鞋的优化思路,把计算擦除面积比例的操作放在手指离开屏幕时,以降低对CPU的占用。 Articles Scrat

An Android custom view to display digits rendered as dots in a grid, with a style like a 1970s LED clock.
An Android custom view to display digits rendered as dots in a grid, with a style like a 1970s LED clock.

#DotMatrixView This is an Android library project providing a custom view that can display things on a grid of dots. When the displayed value changes,

 NumberPickerView - Custom Android View to provide a user friendly way of picking numbers. 🧪
NumberPickerView - Custom Android View to provide a user friendly way of picking numbers. 🧪

🚀 Custom view for Android which provides a modern design and gestures for picking numbers in a user friendly way.

Android Custom CountDownView
Android Custom CountDownView

Android Custom CountDownView

⚡️A highly customizable, powerful and easy-to-use alerting library for Android.
⚡️A highly customizable, powerful and easy-to-use alerting library for Android.

Flashbar A highly customizable, powerful and easy-to-use alerting library for Android. Specs This library allows you to show messages or alerts in you

Comments
  • squid:S00116 - Field names should comply with a naming convention

    squid:S00116 - Field names should comply with a naming convention

    This pull request is focused on resolving occurrences of Sonar rule squid:S00116 - Field names should comply with a naming convention

    You can find more information about the issue here: https://dev.eclipse.org/sonar/coding_rules#q=squid:S00116

    Please let me know if you have any questions.

    M-Ezzat

    opened by m-ezzat 1
  • RuntimeException: native typeface cannot be made

    RuntimeException: native typeface cannot be made

    Error Log: Fatal Exception: java.lang.RuntimeException: native typeface cannot be made at android.graphics.Typeface.(Typeface.java) at android.graphics.Typeface.createFromFile(Typeface.java:199) at com.vstechlab.easyfonts.FontSourceProcessor.process(SourceFile:59) at com.vstechlab.easyfonts.EasyFonts.droidSerifRegular(SourceFile:184) at com.myappdomain.prefix.adapter.PostItemAdapter.getView(SourceFile:120) at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:244) at android.widget.AbsListView.obtainView(AbsListView.java:2250) at android.widget.ListView.makeAndAddView(ListView.java:1806) at android.widget.ListView.fillDown(ListView.java:699) at android.widget.ListView.fillSpecific(ListView.java:1357) at android.widget.ListView.layoutChildren(ListView.java:1624) at android.widget.AbsListView.onLayout(AbsListView.java:2101) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.support.v7.widget.ActionBarOverlayLayout.onLayout(SourceFile:437) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:14832) at android.view.ViewGroup.layout(ViewGroup.java:4640) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1996) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1753) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5739) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) at android.view.Choreographer.doCallbacks(Choreographer.java:574) at android.view.Choreographer.doFrame(Choreographer.java:544) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5372) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:970) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:786) at dalvik.system.NativeStart.main(NativeStart.java)

    My Code on 120th Line is viewHolder.postTitleView.setTypeface(EasyFonts.droidSerifRegular(context));

    opened by powerthazan 0
  • Get all fonts

    Get all fonts

    I recently needed to iterate over fonts in Android and I found EasyFonts very ease to use. This PR adds a method to get a list of all fonts.

    It's my first contribution to a GitHub repo so sorry for the few commits and please let me know if I'm mistaken somewhere.

    Thank you :)

    opened by EyalDagiAvdor 2
Releases(1.0.0)
Owner
Vijay Vankhede
Delivering value at scale
Vijay Vankhede
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Carbon Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implemen

null 3k Dec 30, 2022
A View on which you can freely draw, customizing paint width, alpha and color, and take a screenshot of the content. Useful for note apps, signatures or free hand writing.

FreeDrawView A View that let you draw freely on it. You can customize paint width, alpha and color. Can be useful for notes app, signatures or hands-f

Riccardo Moro 643 Nov 28, 2022
Android layout decorators : Injecting custom attributes in layout files, Using decorators to get rid of unnecessary class explosion with custom views

Decor Decor is a library that applies decorators to Android layout with additional attributes without the need to extend and create a custom View for

Mouna Cheikhna 304 Nov 25, 2022
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

Bubbles for Android Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your

Txus Ballesteros 1.5k Jan 2, 2023
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code.

FancyToast-Android Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { repositories { ... ma

Shashank Singhal 1.2k Dec 26, 2022
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code.

FancyAlertDialog-Android Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { repositories { ..

Shashank Singhal 350 Dec 9, 2022
Android Library for Custom Switches.

Android Library for Custom Switches.

Angad Singh 376 Jan 4, 2023
DailyTags - a flexible markdown library that supports custom tags and markups

The library parses a given markup into rich text for Jetpack Compose. DailyTags comes with Markdown and HTML support by default (please, see the supported features) and is very easy to extend to support custom markups.

Dmytro 134 Dec 25, 2022
Custom android music player view.

InteractivePlayerView Custom android music player view. Screen Check it on youtube Usage(XML) Define it in your xml file. <co.mobiwise.library.Intera

Mert Şimşek 744 Dec 25, 2022
Custom wheel widget for android

Wheel widget for Android To include the wheel widget in the current layout, you should add in the layout xml this lines: <it.sephiroth.android

Alessandro Crugnola 384 Nov 21, 2022