I downloaded a font to include on my Android project.
Now, do I need to also include the "bold" and "italic" versions of the font to my assets or do I need only the regular one? And if I do so, do I need to manually setTypeface(getBoldFont(), Typeface.BOLD)
for bold (and for italic) or does Android automatically get it done for me?
Download the following 4 types of the font: normal, bold, italic, bold_italic. Then create a CustomFont class as follows:
Then when you want to set font on any view, you can use the following code to use the desired font: