2

I'm able to load my custom font in Android this way:

mTypeface = Typeface.createFromAsset(context.getAssets(), "fonts/AvenirNextCondensed.ttc");

I'm loading it fine, the issue i'm facing is that I need Medium style, which doesn't exist. My font always defaults to bold regardless. Is there a way to set the custom font style for a custom font? I have been digging into this for some time, and saw the below links:

Add custom font for complete android application

Accessing a font under assets folder from XML file in Android

Community
  • 1
  • 1
KVISH
  • 12,923
  • 17
  • 86
  • 162

0 Answers0