Function getTextElementPositionOffsets

computes element x/y offset based on textAlign/verticalAlign