// Simply just add this expression to the anchor point of the text layer :
src = thisLayer.sourceRectAtTime();
w = src.width;
h = src.height;
l = src.left;
t = src.top/2;
[l,t]
// This will always keep the anchor point setting to left side of the text layer.