class_docstr: Wrapper for writing rotated or mirrored text
class_docstr_tok: ["Wrapper","for","writing","rotated","or","mirrored","text"]
docstr: Wrapper that creates a transposed font from any existing font
  object.
  
  :param font: A font object.
  :param orientation: An optional orientation.  If given, this should
      be one of Image.Transpose.FLIP_LEFT_RIGHT, Image.Transpose.FLIP_TOP_BOTTOM,
      Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_180, or
      Image.Transpose.ROTATE_270.
docstr_tok: ["Wrapper","that","creates","a","transposed","font","from","any","existing","font","object",".",":","param","font",":","A","font","object",".",":","param","orientation",":","An","optional","orientation",".","If","given",",","this","should","be","one","of","Image.Transpose.FLIP_LEFT_RIGHT",",","Image.Transpose.FLIP_TOP_BOTTOM",",","Image.Transpose.ROTATE_90",",","Image.Transpose.ROTATE_180",",","or","Image.Transpose.ROTATE_270","."]
code: def __init__(self, font, orientation=None):
      """
      Wrapper that creates a transposed font from any existing font
      object.
  
      :param font: A font object.
      :param orientation: An optional orientation.  If given, this should
          be one of Image.Transpose.FLIP_LEFT_RIGHT, Image.Transpose.FLIP_TOP_BOTTOM,
          Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_180, or
          Image.Transpose.ROTATE_270.
      """
      self.font = font
      self.orientation = orientation
  
imports: import base64
  import os
  import sys
  import warnings
  from enum import IntEnum
  from io import BytesIO
  from .None import Image
  from ._util import is_directory, is_path
label_desc: Use image node_id 1 to create a new TransposedFont object  with example: obj = TransposedFont(font, orientation)