@font-face is shared across widgets

Describe the bug:

Defining a @font-face in one widget will allow you to use the @font-face in other widgets.

How do you cause this bug?

  • Create a widget with a @font-face defined
  • Create a second widget no @font-face defined
  • Use the font-family defined in the first widget in the second widget
  • Observe the second widget’s font uses the font-family

Screenshots / video of bug:

Which platform: PC / Stadia

Which input: Controller / keyboard + mouse

Your Crayta username: Cereal

Game seen in (including “Hub” or “Editor for XYZ”): Editor

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time

Time + date seen: September 28 2022

Version number (found in Help tab in Settings): 0.g3.9.128732

1 Like

I have also encountered this bug, but have used it to my advantage, it is much more convenient for me to define once haha.

happened to run across this in the gameface documentation:

https://coherent-labs.com/Documentation/cpp-gameface/d1/d21/fonts.html

Don’t know if it working in this way in Crayta is a bug, since it seems to be an intended feature of how gameface works.