moves code that renders text using anchor/base/position notation onto Text model

the legend also renders text, but it does not use this notation so for the moment
its rendering is remaining on the Legend model.