Open farfromrefug opened 2 years ago
That makes me think of a crazy idea. Could we support for system fonts?
Indeed, font handling assumed static font names, for mostly historical reasons. This should be fixed now in 'develop' branch. Good find.
Regarding about system fonts, I believe this is really platform-dependent and not possible on Android, which is the main target.
@mtehver what about this https://developer.android.com/ndk/reference/group/font ? (though starting at api 29 :s)
@farfromrefug Interesting, did not know about this. But API 29 is way too restricting for minimum requirement, we need to support Android 4.x.
@mtehver 100% agree with you! was worth mentioning as we discovered this for Nativescript runtime
I tried to do something like this:
And it is not working. I am sure
[nuti::font_face]
is correct. If i switch to:then it works