code: def generateFormatToExtension(format, fallbackFormat):
          
          formatToExtension = dict(
              # mactype1=None,
              macttf=".ttf",
              macttdfont=".dfont",
              otfcff=".otf",
              otfttf=".ttf",
              # pctype1=None,
              # pcmm=None,
              # pctype1ascii=None,
              # pcmmascii=None,
              ufo1=".ufo",
              ufo2=".ufo",
              ufo3=".ufo",
              unixascii=".pfa",
          )
          return formatToExtension.get(format, fallbackFormat)
docs: +--------------+--------------------------------------------------------------------+
          | mactype1     | Mac Type 1 font (generates suitcase  and LWFN file)                |
          +--------------+--------------------------------------------------------------------+
          | macttf       | Mac TrueType font (generates suitcase)                             |
          +--------------+--------------------------------------------------------------------+
          | macttdfont   | Mac TrueType font (generates suitcase with resources in data fork) |
          +--------------+--------------------------------------------------------------------+
          | otfcff       | PS OpenType (CFF-based) font (OTF)                                 |
          +--------------+--------------------------------------------------------------------+
          | otfttf       | PC TrueType/TT OpenType font (TTF)                                 |
          +--------------+--------------------------------------------------------------------+
          | pctype1      | PC Type 1 font (binary/PFB)                                        |
          +--------------+--------------------------------------------------------------------+
          | pcmm         | PC MultipleMaster font (PFB)                                       |
          +--------------+--------------------------------------------------------------------+
          | pctype1ascii | PC Type 1 font (ASCII/PFA)                                         |
          +--------------+--------------------------------------------------------------------+
          | pcmmascii    | PC MultipleMaster font (ASCII/PFA)                                 |
          +--------------+--------------------------------------------------------------------+
          | ufo1         | UFO format version 1                                               |
          +--------------+--------------------------------------------------------------------+
          | ufo2         | UFO format version 2                                               |
          +--------------+--------------------------------------------------------------------+
          | ufo3         | UFO format version 3                                               |
          +--------------+--------------------------------------------------------------------+
          | unixascii    | UNIX ASCII font (ASCII/PFA)                                        |
          +--------------+--------------------------------------------------------------------+