Before drawing in the scene event, I set the drawing layer to the highest existing one, but the text still draws behind the anchored actor (it is definitely in the correct location).
It turns out that I have to use labels for this anyway, since there's no way to exclude normally drawn text from the shader as far as I'm aware. So I just spawn a new actor for the text label, which works fine. Thanks for the reply though!