code: def _addFormFont(self, name, font):
          
          if self.isClosed or self.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
  
          return _fitz.Document__addFormFont(self, name, font)
docs: _addFormFont(self, name, font) -> PyObject *