Is it possible to have a mask for the text element? I found for images and sprites, but not for text
Yes: https://playcanvas.com/editor/scene/1226660
Thank you @yaustar