Custom style for custom font on Android

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

链接地址: http://www.djcxy.com/p/34824.html

上一篇: 我如何将本地HTML嵌入到可可二进制文件中?

下一篇: Android上自定义字体的自定义样式