Newsgroups: comp.windows.ms.programmer
Path: utzoo!utgpu!watserv1!daemon
From: tom@mims-iris.waterloo.edu (Tom Haapanen)
Subject: Font madness...
Message-ID: <1991Feb25.204847.18731@watserv1.waterloo.edu>
Sender: daemon@watserv1.waterloo.edu
Organization: University of Waterloo, WATMIMS Research Group
Date: Mon, 25 Feb 1991 20:48:47 GMT
Lines: 16

I'm trying to do some font handling, and having great difficulty
despite RTFM, RTFM and RTFM again (all SDK manuals, Petzold and Yao).

If I do EnumFonts() I can figure out what point sizes are available
on a given hDC (by doing a GetTextMetrics() and other magic to convert
a LOGFONT height into points).  But if I know what pointsize I want
(say, 8-point Helv), how do I select that size?  CreateFontIndirect()
and CreateFont() both want the height in device pixels, and including
the internal leading of the font.  How do I get 8-point?

Grumble grumble documentation grumble manual grumble grumble...

Thanks in advance...

[ \tom haapanen --- university of waterloo --- tom@mims-iris.waterloo.edu ]
[ "i don't even know what street canada is on"               -- al capone ]
