title: PIL TypeError: text() has multiple values for argument 'font'
body: <p>I have the function:</p>
  
  <pre><code>imagewidth = 250 
  y_positions = [65.0, 85.0, 105.0, 125.0, 145.0, 165.0] 
  numbers_to_show = [20, 30, 40, 50, 60, 70]
  
  def draw_numbers(imagewidth, y_positions, numbers_to_show):
      counter = 0
      while counter &lt; len(y_positions):
          numbers_to_show = str(numbers_to_show[counter])
          font = ImageFont.truetype("impact.ttf",20)
          img = Image.open("agepyramid.bmp")
          draw = ImageDraw.Draw(img)
          draw.text(20 , y_positions[counter],numbers_to_show,(0,0,0),font=font)
          draw = ImageDraw.Draw(img)
          img.save("agepyramid.bmp")
          counter = counter + 1
  </code></pre>
  
  <p>I think this function should give me a picture with the "numbers_to_show" at the "y_position" of the image, but it gives me this error:</p>
  
  <pre><code>draw.text(20 , y_positions[counter],numbers_to_show,(0,0,0),font=font)
  TypeError: text() got multiple values for argument 'font'
  </code></pre>
  
  <p>What am I doing wrong?</p>