A simple library to use custom fonts in text view.
Simply add it in your root build.gradle at the end of repositories :
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
And add the dependency :
dependencies {
compile 'com.github.felixgiov:CustomFonts-Library-Android:1.0.0'
}
Declare the dependency in Maven :
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Then, add the dependency :
<dependency>
<groupId>com.github.felixgiov</groupId>
<artifactId>CustomFonts-Library-Android</artifactId>
<version>1.0.0</version>
</dependency>
<string name="cloudier">fonts/Cloudier.ttf</string>
By default this CustomFonts uses Expressive Inks font. Credits
<felixgiov.lib.CustomFonts
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Custom Fonts Example"
app:fontPath="@string/cloudier"/>