code: def _text_position(size, text, font):
          
          width, height = font.getsize(text)
          left = (size - width) / 2.0
          top = (size - height) / 3.0
          return left, top
docs: Returns the left-top point where the text should be positioned.