class_docstr: PIL font wrapper
class_docstr_tok: ["PIL","font","wrapper"]
docstr: Returns bounding box (in pixels) of given text.
  
  .. versionadded:: 9.2.0
  
  :param text: Text to render.
  :param mode: Used by some graphics drivers to indicate what mode the
               driver prefers; if empty, the renderer may return either
               mode. Note that the mode is always a string, to simplify
               C-level implementations.
  
  :return: ``(left, top, right, bottom)`` bounding box
code: def getbbox(self, text, *args, **kwargs):
      """
      Returns bounding box (in pixels) of given text.
  
      .. versionadded:: 9.2.0
  
      :param text: Text to render.
      :param mode: Used by some graphics drivers to indicate what mode the
                   driver prefers; if empty, the renderer may return either
                   mode. Note that the mode is always a string, to simplify
                   C-level implementations.
  
      :return: ``(left, top, right, bottom)`` bounding box
      """
      _string_length_check(text)
      width, height = self.font.getsize(text)
      return 0, 0, width, height
  
imports: from __future__ import annotations
  import base64
  import os
  import sys
  import warnings
  from enum import IntEnum
  from io import BytesIO
  from pathlib import Path
  from typing import BinaryIO
  from .None import Image
  from ._util import is_directory, is_path
label_desc: Use image node_id 4 for calling the ImageFont obj's underlying member method code with example usage: obj.getbbox(text) and returns: int,  int,  width,  height