Article View: comp.os.ms-windows.programmer.misc
Article #1588printing text at an angle without learning all about fonts
From: John Grant
Date: Tue, 13 Oct 1992 23:27
Date: Tue, 13 Oct 1992 23:27
16 lines
1219 bytes
1219 bytes
I am quite satisfied with the default font (whatever it is, I don't care), but I want to label a few things with text at various angles. I started to read Petzold 3.1 chapter 14 and said "this is nuts - I shouldn't have to learn all of this - I'm not writing a word processor!". In other graphics systems, I can use something like: PlotText(float x,float y,float angle,char *text); so why can't I do the same in Windows? So the question is "What is the simplest way to print text at an angle, without learning too much about fonts?" I saw the .lfEscapement field in LOGFONT and I suppose that is the only way to change the angle. I also know how to get the handle of the default font: hfont=GetStockObject(SYSTEM_FONT); Now, how can I get a LOGFONT for the SYSTEM_FONT, so I can go in and modify .lfEscapement?
Technical Details
Message-ID:
<1992Oct13.232736.15896@emr1.emr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!cunews!nrcnet0!emr1!jagrantShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!cunews!nrcnet0!emr1!jagrant From: jagrant@emr1.emr.ca (John Grant) Subject: printing text at an angle without learning all about fonts Message-ID: <1992Oct13.232736.15896@emr1.emr.ca> Organization: Dept. of Energy, Mines, and Resources, Ottawa Date: Tue, 13 Oct 1992 23:27:36 GMT Lines: 16