better and cleaner handling of text x y dx dy attributes