[Image-SIG] RE: missing fonts

VAN DER HEIJDEN Maarten mvanderheijden@fininfo.fr
Mon, 28 Apr 2003 13:29:06 +0200


> -----Message d'origine-----
> De:	VAN DER HEIJDEN Maarten=20
> Date:	28 avr. 03 13:28
> =C0:	'image-sig@python.org'
> Objet:	TR: missing fonts
>=20
>=20
>=20
> -----Message d'origine-----
> De:	VAN DER HEIJDEN Maarten=20
> Date:	28 avr. 03 13:17
> =C0:	'image-sig@python.org'
> Objet:	missing fonts
>=20
> Hello,
>=20
>=20
> I tried to write text with ImageDraw.  But it seems that the following
> file is missing:
> "BDF/courR14.pil".
>=20
> Somebody knows how to use fonts in PIL? For exemple fonts already
> available under windows.
>=20
> C:\python22\Samples>c:\python22\python.exe painter.py test2.bmp
> Traceback (most recent call last):
>   File "painter.py", line 71, in ?
>     draw.text( (100,100), "Hallo" )
>   File "C:\python22\PIL\ImageDraw.py", line 155, in text
>     font =3D self.getfont()
>   File "C:\python22\PIL\ImageDraw.py", line 61, in getfont
>     self.font =3D ImageFont.load_path("BDF/courR14.pil")
>   File "c:\python22\PIL\ImageFont.py", line 136, in load_path
>     raise IOError, "cannot find font file"
> IOError: cannot find font file
>=20
> Thanks in advance, Maarten
>=20


Ce message et toutes les pi=E8ces jointes (ci-apr=E8s le "message") sont =
=E9tablis =E0 l'intention exclusive de ses destinataires et sont confidenti=
els. Si vous recevez ce message par erreur, merci de le d=E9truire et d'en =
avertir imm=E9diatement l'exp=E9diteur. Toute utilisation de ce message non=
 conforme =E0 sa destination, modification, diffusion ou toute publication,=
 totale ou partielle, est interdite, sauf autorisation expresse.FININFO (et=
 ses filiales) d=E9cline(nt) toute responsabilit=E9 au titre de ce message,=
 dans l'hypoth=E8se ou il aurait =E9t=E9 modifi=E9, alt=E9r=E9, falsifi=E9 =
ou encore =E9dit=E9 ou diffus=E9 sans autorisation.
-----------------------------------------------------
This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this=20
message in error, please delete it and immediately notify the=20
sender. Any use not in accord with its purpose, any dissemination=20
or disclosure, either whole or partial, is prohibited except formal=20
approval. Neither FININFO (nor any of its subsidiaries or affiliates)=20
shall be liable for the message if modified, altered, falsified, edited=20
or diffused without authorization.=20