Greetings,

I'm trying to get the default font for the “system” font. I'm trying this:
DefaultTextSize=NSFontMBS.systemFontSize
dim TheFont as NSFontMBS=NSFontMBS.systemFontOfSize(DefaultTextSize)

“TheFont”'s properties tell me things such as “System” or “.AppleSystemUIFont” 
(for which I can't find any information about, on the Internet). Since 
systemFontOfSize is expected to return the system font, what's the point of 
this function if it returns a “pseudo” font that tells me nothing more?

The default font has already changed between Mac OS 10.11 and 10.14 and may 
change later as well. Yet Apple doesn't provide a way to get its name?
But… how does Xojo translates “System” to the corresponding font in the first 
place? There seems to be a way…

I've also found this: 
https://developer.apple.com/documentation/uikit/uifont/1619030-preferredfontfortextstyle?language=objc
 
<https://developer.apple.com/documentation/uikit/uifont/1619030-preferredfontfortextstyle?language=objc>
But my application fails to start when I try to convert this as a declare, no 
matter how I try…

How can I do that?
_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to