class_docstr: Font file plugin for the X11 PCF format.
class_docstr_tok: ["Font","file","plugin","for","the","X11","PCF","format","."]
code: def _getformat(
      self, tag: int
  ) -> tuple[
      BinaryIO, int, Callable[[bytes], int], Callable[[bytes], int]
  ]:
      format, size, offset = self.toc[tag]
  
      fp = self.fp
      fp.seek(offset)
  
      format = l32(fp.read(4))
  
      if format & 4:
          i16, i32 = b16, b32
      else:
          i16, i32 = l16, l32
  
      return fp, format, i16, i32
  
file_path: pillow/src/PIL/PcfFontFile.py
imports: from __future__ import annotations
  import io
  from typing import BinaryIO, Callable
  from .None import FontFile, Image
  from ._binary import i8
  from ._binary import i16be
  from ._binary import i16le
  from ._binary import i32be
  from ._binary import i32le
label_desc: Use image node_id 2 for calling the PcfFontFile obj's underlying member method code with example usage: obj._getformat(tag) and returns: fp,  format,  i16,  i32