Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
set the textfont of fld "fFont" to "Quicksand Light"
You can not just set the name of a font except if you are sure there is a font that is named like that. Only the pulldown menu of the Font section of a newly opened Properties Inspector would have the right name.
Sparkout posted a link to a Quality Control Center bug report that mentions that Font handling on Windows by Livecode seems severly limited/broken.
It's worth a read. This bug was first reported by Ken Ray in 2019 (only 5 years ago) and still hasn't been fixed.
"Bug 21804 - LC does not allow access to available font weights on Windows like Mac does
...
There is a HUGE problem that I was partially aware of years ago but that now has made me dive in and report on as fully as I can.
The problem stems from how Windows handles fonts and font weights and how that relates to Livecode.
Here's a simple example: I downloaded a licensed copy of Font Awesome 5 Pro to use its icons in LC. Font Awesome 5 Pro has three different "styles" or "weights": Solid, Regular, and Light.
On a Mac, these three are represented as three different font names, so I can assign the textFont of a field to "Font Awesome 5 Pro Solid" or "Font Awesome 5 Pro Light" and it works like one would expect.
On Windows, however, these are grouped together under a single font name "Font Awesome 5 Pro", so (a) trying to set the textFont of a field to "Font Awesome 5 Pro Solid" fails, and (b) you get the "Regular" version with "Font Awesome 5 Pro", and you can get at the "Solid" version by setting the textStyle of the field to "bold", but there's no way to get the "Light" version, meaning that interfaces that use the Light version cannot ever be run cross-platform, forcing a redesign (as it was in my case)." - Ken Ray (2019).
This is exactly the issue that I (and all other Livecode users) face. I'm really surprised this hasn't been raised by more Livecode Developers.
In 2021 Juan "found a workaround" by recompiling the font with a unique name.
I'll go through this process step by step (it may take few posts)...
Last edited by Gary Rathbone on Thu Mar 14, 2024 4:26 pm, edited 5 times in total.
What LC really needs then is the option to choose any of the available weights. Seems like it should not only be feasible but also mandatory in this day and age….