add/remove text from custom VisualElement

You can render text with the Vector API: Introducing the Vector API in Unity 2022.1

Is that like what you’re looking for?