1

I need to download fonts directly from my android studio project from url https://github.com/google/fonts/blob/master/apache/roboto/Roboto-Regular.ttf. And downloaded fonts should be in my studio projects under fonts directory.

Anil
  • 1,087
  • 1
  • 11
  • 24
saiRam89
  • 365
  • 1
  • 8
  • 21

1 Answers1

1

Download font file from Github after that follow these steps.

Go to the (project folder)
Then app>src>main
Create folder assets>fonts into the main folder.
Put your Roboto-Regular.ttf into the fonts folder.
Shahzain ali
  • 1,679
  • 1
  • 20
  • 33
  • Normally we are done in this way but I need by using URL it has to be downloaded automatically and should save under fonts directly URL might be dynamic URL. – saiRam89 Aug 01 '17 at 05:41
  • I know that it can be done through flutter, but don't know any way for android – Bensal Jun 14 '21 at 04:28