Text attributes & coordinate transformation

This contains all I need atm for handling text attributes & coordinates.