code: def __init__(self, fp):
      magic = l32(fp.read(4))
      if magic != PCF_MAGIC:
          raise SyntaxError("not a PCF file")
  
      FontFile.FontFile.__init__(self)
  
      count = l32(fp.read(4))
      self.toc = {}
      for i in range(count):
          type = l32(fp.read(4))
          self.toc[type] = (
              l32(fp.read(4)),
              l32(fp.read(4)),
              l32(fp.read(4)),
          )
  
      self.fp = fp
  
      self.info = self._load_properties()
  
      metrics = self._load_metrics()
      bitmaps = self._load_bitmaps(metrics)
      encoding = self._load_encoding()
  
      #
      # create glyph structure
  
      for ch in range(256):
          ix = encoding[ch]
          if ix is not None:
              x, y, l, r, w, a, d, f = metrics[ix]
              glyph = (
                  (w, 0),
                  (l, d - y, x + l, d),
                  (0, 0, x, y),
                  bitmaps[ix],
              )
              self.glyph[ch] = glyph
  
file_path: catboost/contrib/python/Pillow/py2/PIL/PcfFontFile.py
imports: import io
  from .None import FontFile, Image
  from ._binary import i8, i16be, i16le, i32be, i32le
label_desc: Use image node_id 1 to create a new PcfFontFile object from inherited base classes: FontFile with example: obj = PcfFontFile(fp)