how to set custom font in android programmatically code example
Example: change font programmatically android
Typeface typeface = ResourcesCompat.getFont(context, R.font.antonine); //your font heva to be save in the res/fonts folder
setTypeface(typeface);