Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use `Open Sans` font style for textview in android?

Tags:

android

xml

How to use Open Sans font style for textview in android? by default in font-family Open Sans is not available.

like image 375
Faisal Avatar asked Dec 24 '22 17:12

Faisal


1 Answers

Android O and Android Support Library 26 add support for Downloadable Fonts.

Google Fonts is shipping a Font Provider in Google Play Services.

Please read official doc: https://developers.google.com/fonts/docs/android

like image 152
J Santiago Berrocoso Avatar answered Jan 07 '23 22:01

J Santiago Berrocoso