class_docstr: Manages a set of fonts: normal, italic, bold, etc...
class_docstr_tok: ["Manages","a","set","of","fonts",":","normal",",","italic",",","bold",",","etc","..."]
docstr: Get the text size (width, height).
docstr_tok: ["Get","the","text","size","(","width",",","height",")","."]
code: def get_text_size(self, text):
      """
      Get the text size (width, height).
      """
      font = self.fonts["NORMAL"]
      if hasattr(font, "getbbox"):  # Pillow >= 9.2.0
          return font.getbbox(text)[2:4]
      else:
          return font.getsize(text)
  
imports: import os
  import sys
  from pygments.formatter import Formatter
  from pygments.util import get_bool_opt, get_int_opt, get_list_opt, get_choice_opt
  import subprocess
label_desc: Use image node_id 9 for calling the FontManager obj's underlying member method code with example usage: obj.get_text_size(text) and returns: font, font