PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Friday the 22nd of November, 2013

(Back to #pil overview) (Back to channel listing) (Animate logs)
[16:02:48] <therealfakemoot> I'm confused about using the ImageDraw.Draw.text() method (http://pillow.readthedocs.org/en/latest/reference/ImageDraw.html#PIL.ImageDraw.PIL.ImageDraw.Draw.text).
[16:03:01] <therealfakemoot> In that, once I create an Image object, I'm not sure how to actually draw text to it.
[16:35:07] <wiredfool1> therealfakemoot: https://github.com/python-imaging/Pillow/blob/master/Tests/test_imagefont.py#L50
[16:37:16] <therealfakemoot> Yeah, I worked it out
[16:37:24] <wiredfool1> ah, ok.
[16:37:33] <therealfakemoot> Didn't read the docs thoroughly enough
[17:31:43] <therealfakemoot> So the only way to manipulate the font size of rendered text is passing in an ImageFont instance?
[17:39:55] <therealfakemoot> So I'm using Pillow to render some text onto a PNG. it seems like I have to manually build a font object (specifying some sort of explicit path to a font file). Is there a good way to portably do this? I'm writing a tool that will be distributed among the developers at my company