title: Pillow draws rectangles or logos instead of chars
body: <p>So, i have the code for rendering chars from ASCII with font from ttf files, i want it to draw images of chars but for some reason, in some iterations i get drawn rectangles, or Logos. I tried drawing thoe chars one by one with ASCII value, and the got drawn as they shoul be drawn.</p>
  <p>Here in this <a href="https://imgur.com/a/tko8vBa" rel="nofollow noreferrer">link</a> i want only &quot;, yet i get drawn nothing, rectangles and logos. What am i missing here?</p>
  <pre><code>   for filename in os.listdir(directory):
  
      f = os.path.join(directory, filename)
  
      # checking if it is a file
      if os.path.isfile(f):
          print(filename)
  
         try:
                  
              font = ImageFont.truetype(f, size=40) 
  
          
              #iterates trough ASCII printable chars, and draws a picture for every sign
              
              for c in range(33, 35, 1): #range is 33 to 127 for all chars
  
                  #One we want to draw on image
                  drawnChar = chr(c)
  
                  #usual check if dir exists, if not it creates a dir with ASCII value of rendered charater
                  if path.exists(&quot;../AlpNumLettersEnv/Renders/&quot; + str(c)) == False:
                      os.mkdir(&quot;../AlpNumLettersEnv/Renders/&quot; + str(c))
  
                  #make an Image x*x size and background color, &quot;RGB&quot; needed for Open CV
                  image = Image.new(&quot;RGB&quot;, (100, 100), &quot;white&quot;)
                  draw = ImageDraw.Draw(image)
  
                  color = 'black'
  
                  #adds the text over image, with indexed font. And saves the image under the name of font + ASCII value of char
                  draw.text((40, 30), drawnChar, font=font, fill=color)
                  
                  NameOfImage = str(str(filename[:-4]) + str(c) +'.jpg') #Needs to have '.jpg' to work
                  print(NameOfImage)
                  image.save(&quot;../AlpNumLettersEnv/Renders/&quot; + str(c) +&quot;/&quot;+ NameOfImage) 
                  print()
                  
  
          except:
              print('Error, cannot load ttf')
  </code></pre>