macOS and the default font in fields

J. Landman Gay jacque at hyperactivesw.com
Tue May 25 15:06:50 EDT 2021


On 5/24/21 4:19 PM, Paul Dupuis via use-livecode wrote:
> My objective is to store the defaults for a given OS and version on startup of my application, 
> so that if the user uses existing controls to change fonts in various places, I cna provide a 
> means to "Reset" them to the defaults

The fonts in parentheses are special placeholders for the current system's various text fonts 
or styles, created so we don't have to figure out what that is. You should be able to reset the 
fields by assigning one of those, probably either ("Text") or ("Default"), as the font and let 
LC figure out what to use. That should work on all operating systems, including mobile.

I can't explain the discrepancy when getting the effective textFont but I've been using 
"(Text)" most of the time with good results.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list