@classmethod
def get_text_size(cls, text):
    """
            calculates the height and width of the input text string.

            return: (width, height)

        :param text: str - input text
        """
    return cls.font_metrics.width(text), cls.font_metrics.height()
