'The textDimensions function takes a string and returns the dimensions (width, height)
of this text being rendered on the screen.'

def textDimensions(self, text):

    tsurface = self._mFont.render(text, True, self._csvRGB2pgColor(Color.WHITE, 255))
    return (tsurface.get_width(), tsurface.get_height())
