I'm trying to generate some text in an image that will be embedded in an email. I would like to look as much as possible as the other text in the message body; so I tried:
i = Image.new(500, 100)
d = Draw.new
d = d.annotate(i, 0,0,0,25,nombre){
self.font = "Arial-Regular"
self.pointsize = 12
self.text_antialias = true
}
but the output is awful (see output here)
I'm using Ubuntu, I've installed msttcorefonts (Arial appears on convert -list font
). I've also tried using other fonts/font_families and turning off text_antialias
with the same luck
Any hints?