I've been searching around and tried out a few different things, none of which seem to work, but I just want to find out if there's a way to get the name of the default font on the current platform?
I ask because I've got some info pages which display in a WebView (because they have some external links which are easiest handled via a WebView rather than some kind of formatted label) but they don't seem to use the system/platform default font (iOS doesn't, not yet tested Android). My plan was to add CSS to the pages so that the font, at least, looks the same as the rest of the app.
Here's what I've tried:
Unfortunately, on the iOS simulator, they all just return null/empty. I've not tried on other platforms yet as I figure there's no point - I need a cross-platform solution (so if it doesn't work on one platform then it's no good).
Most of the posts that come up when I search are all about setting a default/app-wide font. I have no desire to do that. The only thing I can find that comes close to answering my question is this post from SO ( stackoverflow.com/questions/44088536/whats-the-default-font-family ) - is what Ada says correct? Would I really have to implement native-services, and use dependency-injection to get the default font value? Or is there a more straight-forward way to do this?
Thanks in advance.