Before anyone marks it duplicate, I have already checked this post but no help.
I have created a framework, and in that framework I've created some UI. Now I want to use custom fonts for that UI, and those custom fonts name would be provided by the user itself. To make it more clear: I have a framework, I have imported in my existing project. Now I have to show a popup via framework.
MyFramework.showPopup()
But here, user will specify the fonts for that popup, i.e.
MyFramework.showPopup(regularFont: FontA.otf, boldFont: FontB.otf)
These fonts are already added in the project where I have imported the framework. I just need a way to load these fonts from inside framework. Any help would be appreciated. Thanks.