parameters: (fontList)
docstring: Find a matching font for the Table of Contents.
docstring_summary: Find a matching font for the Table of Contents.
docstring_tokens: Find a matching font for the Table of Contents .
function: def set_font_fixed(fontList):
      """Find a matching font for the Table of Contents."""
      availableFonts = scribus.getFontNames()
      found = 0
      for f in fontList:
          if found:
              break
          for i in availableFonts:
              if not found:
                  if f == i:
                      return f
                      found = 1
                      break
      if not found:
          errorList = ''
          for j in fontList:
              errorList = errorList + j + '\n'
          errorMessage ='No suitable fixed width font found.\nPlease install at least one of these fixed width fonts:\n'+errorList
          print errorMessage
          raise Exception(errorMessage)
function_tokens: def set_font_fixed ( fontList ) : availableFonts = scribus . getFontNames ( ) found = 0 for f in fontList : if found : break for i in availableFonts : if not found : if f == i : return f found = 1 break if not found : errorList = '' for j in fontList : errorList = errorList + j + '\n' errorMessage = 'No suitable fixed width font found.\nPlease install at least one of these fixed width fonts:\n' + errorList print errorMessage raise Exception ( errorMessage )