This question has already been answered:

Now to me in order to change the font of all the twist elements that contain the text it took

  • Download font (calibril.ttf)
  • Write function

    public static void setFont (Context c, TextView name) {Typeface font = Typeface.createFromAsset (c.getAssets (), "fonts / calibril.ttf"); name.setTypeface (font); }

  • Add to each element the method in which you want to change the font

Is it possible to install the font at the application level?

I understand that I can do this

<application android:theme="@style/CustomTheme"> 

and in the subject for the entire application, specify the font style, but what tag for this exists?

Reported as a duplicate by pavlofff , cheops , aleksandr barakin , PashaPash 14 May '16 at 8:33 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • Can redefine the desired views (TextView, Button, etc.), and override in them the purpose of the font in the constructor or some method of the life cycle? - Djangorussia
  • @jangorussia yes, but this is also not very convenient ... - Aleksey Timoshchenko

1 answer 1

I use the sides. library at https://github.com/chrisjenx/Calligraphy

  • Yes, I met it before, but I understand it does not give the ability to set the font style for the entire application, it simply facilitates the installation of the style in a specific twist ... or not? - Aleksey Timoshchenko