Stefano Masini wrote:

> Do you think that is possible with win32 extensions?

you can do this via PIL's ImageFont module:

>>> import ImageFont
>>> f = ImageFont.truetype("arial.ttf")
>>> f.font.family
'Arial'
>>> f.font.style
'Regular'

or, if you don't want to ship the entire PIL library with your app, you
can grab the _imagingft module and use low-level functions:

>>> import _imagingft
>>> f = _imagingft.getfont("c:/windows/fonts/arial.ttf", 0)
>>> f.family
'Arial'
>>> f.style
'Regular'

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to