parameters: (self, font)
return_statement: return psname
docstring: Attempts to return proper font name.
docstring_summary: Attempts to return proper font name.
docstring_tokens: Attempts to return proper font name .
function: def _findPostScriptFontName(self, font):
      """Attempts to return proper font name."""
      #maps a piddle font to a postscript one.
      #step 1 - no face ends up serif, others are lowercased
      if not font.face:
        face = 'serif'
      else:
        face = font.face.lower()
      while face in pidPDF.font_face_map:
        face = pidPDF.font_face_map[face]
      #step 2, - resolve bold/italic to get the right PS font name
      psname = pidPDF.ps_font_map[(face, font.bold, font.italic)]
      return psname
function_tokens: def _findPostScriptFontName ( self , font ) : #maps a piddle font to a postscript one. #step 1 - no face ends up serif, others are lowercased if not font . face : face = 'serif' else : face = font . face . lower ( ) while face in pidPDF . font_face_map : face = pidPDF . font_face_map [ face ] #step 2, - resolve bold/italic to get the right PS font name psname = pidPDF . ps_font_map [ ( face , font . bold , font . italic ) ] return psname