Can anyone advise me how I can fit text to a curve?

Can I use a masking layer to do this?