Font Weight increase by Animation

Font Weight is a string, and I am trying to figure out the trick to get it to adjust slowly.
Is there a trick to it?

What’s a better way?


unfortunately the browser will not let us intermediate sizes for fontweight (as I think this depends on the font itself)

You could do a dynamicTexture, then set that as the image for your UI element. You would have to manually anumate it but you could use text-shadows then I think.