-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
  • 12,833
  • 5
  • 50
  • 71
Ali
  • 3,346
  • 4
  • 21
  • 56

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
  • 6,076
  • 3
  • 28
  • 44
1

Try this!!!

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

For detail go through this and this

Arnold Brown
  • 1,330
  • 13
  • 28