🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #10

Re: How do I draw text vertically?

#10
From: Tom Duenser
Date: Tue, 21 Jul 1992 08:08
20 lines
1119 bytes
In article <20sis-c@massey.ac.nz> B.R.Foster@massey.ac.nz writes:
>I want to draw text vertically (rotated 90 degrees) for the y-axis of a graph.
>Is there an easy way to do it, other than putting it into a bitmap and
>rotating it, which won't print the font properly on a postscript printer?
>
>Thanks,
>  Brent
>
>B.R.Foster@massey.ac.nz

Create a font with lfEscapement = 900.
This *ONLY* works if GetDeviceCaps(hDC,TEXTCAPS) has the
TC_CR_90 or TC_CR_ANY bits set.

Let me know if you find another way.

Tom
-- 
Tom Duenser                                tom@cophos.co.at        
COPHOS Development Team                    #include <std/disclaim.h>                 
Technical Details
Message-ID: <1992Jul21.080824.12240@cophos.co.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!hp4at!cophos!tom
References: <20sis-c@massey.ac.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!hp4at!cophos!tom
From: tom@cophos.co.at (Tom Duenser)
Subject: Re: How do I draw text vertically?
Message-ID: <1992Jul21.080824.12240@cophos.co.at>
Organization: COPHOS Development Team, ZUMtOBEL Licht GmbH, Dornbirn, AUSTRIA
References: <20sis-c@massey.ac.nz>
Date: Tue, 21 Jul 1992 08:08:24 GMT
Lines: 20