<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
1. The unit is the number of pixels to an em.  Often this doesn't
correspond to any actual measurement on the letters.  See
<a class="moz-txt-link-freetext" href="http://type101.fontbureau.com/archives/36">http://type101.fontbureau.com/archives/36</a> for more information about
ems.<br>
<br>
2. PIL doesn't offer any help on finding font files.  You'll have to
deal with that yourself.<br>
<br>
--Ned.<br>
<br>
KwangYul Seo wrote:
<blockquote
 cite="mid:7beb12420803112231k44b5ec3dudcefefc4468b1d1b@mail.gmail.com"
 type="cite">Hello,<br>
  <br>
I draw fonts using ImageFont module. I have two questions on ImageDraw
module.<br>
  <br>
1. What is the unit of font size?<br>
  <br>
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. <br>
  <br>
  <br>
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.<br>
  <br>
  <br>
Thanks,<br>
Kwang Yul Seo<br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Image-SIG maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Image-SIG@python.org">Image-SIG@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/image-sig">http://mail.python.org/mailman/listinfo/image-sig</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Ned Batchelder, <a class="moz-txt-link-freetext" href="http://nedbatchelder.com">http://nedbatchelder.com</a>
</pre>
</body>
</html>