[Image-SIG] Question on ImageFont

Steve Shelly shellylaker at hotmail.com
Sat Aug 6 19:46:13 CEST 2005


I am a newbie to PIL. I have a requirement to be able to draw Fonts that can 
be underlined. I don't see any ready made fonts that come with underlines.. 
Is there a simple to figure out how to draw underlines?

    fnt = ImageFont.truetype('Arial.ttf',25)
    im = Image.open('Background.jpg')
    draw = ImageDraw.Draw(im)
    draw.text((80,11),"Hello",font=fnt,fill=color)

`# How to underline Hello?

    im.save("fulPic.gif")

Thank you,
Steve Shelly

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



More information about the Image-SIG mailing list