parameters: (fontList)
docstring: Find a matching font for the page numbers and font names above samples.
docstring_summary: Find a matching font for the page numbers and font names above samples.
docstring_tokens: Find a matching font for the page numbers and font names above samples .
function: def set_font_proportional(fontList):
      """Find a matching font for the page numbers and font names above samples."""
      availableFonts = scribus.getFontNames()
      found = 0
      for p in fontList:
          if found:
              break
          for i in availableFonts:
              if not found:
                  if p == i:
                      return p
                      found = 1
                      break
      if not found:
          errorList = ''
          for j in fontList:
              errorList = errorList + j + '\n'
          errorMessage = 'No suitable proportional font found.\nPlease install at least one of these proportional fonts:\n'+errorList
          print errorMessage
          raise Exception(errorMessage)
function_tokens: def set_font_proportional ( fontList ) : availableFonts = scribus . getFontNames ( ) found = 0 for p in fontList : if found : break for i in availableFonts : if not found : if p == i : return p found = 1 break if not found : errorList = '' for j in fontList : errorList = errorList + j + '\n' errorMessage = 'No suitable proportional font found.\nPlease install at least one of these proportional fonts:\n' + errorList print errorMessage raise Exception ( errorMessage )