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@python.org
http://mail.python.org/mailman/listinfo/image-sig
--
Ned Batchelder, http://nedbatchelder.com
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig