[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] mix pygame with win32?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] mix pygame with win32?
- From: inhahe <inhahe@xxxxxxxxx>
- Date: Mon, 8 Mar 2010 19:47:38 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 08 Mar 2010 19:47:48 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=yIm98+UWBsVXoZcPYTcU/LrGgnB3J3TlX/NxyPCvjYY=; b=Tep/9b/+uKWterSJLEv0vm3E75+XYd73OaQEeWdbZOdFFCMAWKMYp2Es+vkzd4STMM bKgLIjXoZMHlIWd+huw2N5SkperQGUjqzhmX/3h5A1xu8zKmxwlQKd47GtgvACpxUPW2 tw2Ibb0Maf0jVo+RfxWfxF669JYIDBvu9QEZY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=dasDMrv6tQJHdMw7XQ2MtpM0Hc5p690Txr8fr56inoiM7UK3upqPCg/782zHJL1vcX NSMQN2q3yEa8zg3FSbL1PufXk6WJhevuiiVxSnPEtyHRCWEfPfKzdCublmvPOkwdN/lC Xfv064n2XI1+Cqczx8+cTRQnSaTpu/cMS4UTU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'm thinking of making a GUI for pygame (I know it's been done already), but I don't want to unless I can render fonts with bold, italic, etc. in-lined into the string, like, e.g., Qt's "RTF" strings. It's not the same when you render them separately and patch it together; the spacing isn't right. I've been told that not even the new beta pygame that uses freetype can do that. So I was thinking maybe I could (on Windows) call some win32 function to render text, but I'd imagine I have to pass it a device context handle or whatever for the surface to draw on, and I don't see a function in pygame to return a device context handle. So...Is there any way to do this? Thanks.