fonts in PIL ?

Cousin Stanley CousinStanley at hotmail.com
Mon Feb 9 18:45:38 EST 2004


| ....
| am I dreaming or all fonts are in white ?
| (and so cannot be seen if you have a white background) ?
|
| Or is there a way to set the color of text ?

Stéphane ....

    # Set the background color when creating the image ....

    this_image  = Image.new( 'RGB' , ( 360 , 240 ) , 'white' )

    # Set the fill color when drawing the text ....

    i_draw.text( ( this_col , this_row ) , 
                           this_line , 
                           font = i_font , 
                           fill    = 'black' )

-- 
Cousin Stanley
Human Being
Phoenix, Arizona




More information about the Python-list mailing list