[Image-SIG] ImageDraw questions.
Ned Batchelder
ned at nedbatchelder.com
Tue Mar 18 12:46:16 CET 2008
1. The unit is the number of pixels to an em. Often this doesn't
correspond to any actual measurement on the letters. See
http://type101.fontbureau.com/archives/36 for more information about ems.
2. PIL doesn't offer any help on finding font files. You'll have to
deal with that yourself.
--Ned.
KwangYul Seo wrote:
> Hello,
>
> I draw fonts using ImageFont module. I have two questions on ImageDraw
> module.
>
> 1. What is the unit of font size?
>
> ImageFont.trutype(file, size) can specify the font size as its second
> argument. I specified font size 10, but the output text seems to be
> smaller than 10.
>
>
> 2. What is the best way to get a list of fonts which can be passed to
> ImageFont.truetype(file, size)? Certainly, I can scan Windows system
> fonts under C:/WINDOWS/Fonts, but it does not look like a portable way.
>
>
> Thanks,
> Kwang Yul Seo
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
--
Ned Batchelder, http://nedbatchelder.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20080318/c0bb21e3/attachment.htm
More information about the Image-SIG
mailing list