-1

i want to a use custom font in my application

i refer this link : How to use custom font in Android Studio

this work for me but i want to change a font using : gradle library

so can anyone have solution.

Thanks Advance

Saurabh Mistry
  • 11,077
  • 4
  • 41
  • 64
Ali
  • 3,223
  • 4
  • 19
  • 50

2 Answers2

1

Check official docs.

  1. Put your fonts in font resource folder
  2. Create font-family
  3. Use your font for your TextView for example
shmakova
  • 5,544
  • 3
  • 27
  • 42
1

Try this!!!

dependencies {
    compile 'uk.co.chrisjenx:calligraphy:2.3.0'
}

For detail go through this and this

Arnold Brown
  • 1,242
  • 10
  • 25