When setting the FontFace’s Weight property into something else than “Regular” and the font doesn’t support it, the property becomes “empty” and referencing it in Luau causes Studio to crash
Reproduction steps
Create a TextLabel
Set FontFace font to “Ubuntu”
Set FontFace weight to “Light”
Run the following in the console: print(path.to.textlabel.FontFace.Weight)
It crashes
You can alternatively use this file and import it into Studio, then skip to step 4: crash cause.rbxm (2.4 KB)
Expected behavior
Either it does a runtime error or it just prints nil
Actual behavior
Crashes Studio, not tested in the client but it probably crashes there aswell
There was a bug with the Studio font picker that caused it to not work correctly, I think this is a side effect of that.
Can you try updating to the latest version of Studio (572, released this morning) and try again? I am unable to reproduce the blank behavior or the crash now that the font picker issue has been fixed.
Note that place files that were edited prior to the fix may still have broken weight values, but should fix themselves if you try to select the weight again from in Studio.