🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.misc
4 messages
4 total messages Started by Steven Greco Thu, 21 Jan 1993 19:14
Drawing Text on its side in BC++?
#2237
Author: Steven Greco
Date: Thu, 21 Jan 1993 19:14
10 lines
887 bytes
I need to draw text on its side and was wondering if it is possible to
do this with Borland C++ and owl.  Right now I am using DrawText to draw
my text, but it just produces normal text, not text on its side.  Is this
possible?  Is there any way to rotate a bitmap possibly?

Thanks in advance.
-- 
^ Steven Greco ^           "I've got a real indication of a laugh coming on..."
greco@cs.uiuc.edu                  -Thought Gang
s-greco@uiuc.edu
Re: Drawing Text on its side in BC++?
#2239
Author: John Grant
Date: Thu, 21 Jan 1993 20:18
14 lines
1139 bytes
In article <C17xG3.DMw@cs.uiuc.edu> greco@cs.uiuc.edu (Steven Greco) writes:
>I need to draw text on its side and was wondering if it is possible to
>do this with Borland C++ and owl.  Right now I am using DrawText to draw
>my text, but it just produces normal text, not text on its side.  Is this
>possible?  Is there any way to rotate a bitmap possibly?
	You must create a new HFONT with the required angle.  The
	angle is the .lfEscapment member of a LOGFONT.
	Not all fonts can be rotated (i.e. bitmapped fonts).  However,
	all TrueType fonts can be rotated.  I just use "Arial" as
	my default font for graphics.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Re: Drawing Text on its side in BC++?
#2351
Author: Dave Emmerson
Date: Tue, 26 Jan 1993 13:36
5 lines
852 bytes
Borland C++ 3.1 includes source for an example programme, truetype,
which demonstrates how to rotate text. As I recall, its C++. (But not
at all difficult to modify for ANSI, for anyone else who might be 
interested.)
	Dave.
Re: Drawing Text on its side in BC++?
#2395
Author: Bill Whedon
Date: Wed, 27 Jan 1993 04:48
17 lines
1222 bytes
In article <DAVE.93Jan26133650@wundt.harlqn.co.uk> dave@harlqn.co.uk (Dave Emmerson) writes:
>Borland C++ 3.1 includes source for an example programme, truetype,
>which demonstrates how to rotate text. As I recall, its C++. (But not
>at all difficult to modify for ANSI, for anyone else who might be 
>interested.)
>	Dave.
You really need look no further than the description of the LOGFONT struct
to find out how to rotate text.  You set the lfEscapement and lfOrientation
elements (in tenths of a degree) to the appropriate angles, and create the
font, then TextOut at your desired coordinates... voila!  It's rotated!
Try it and see.  It's dead simple.
Cheers,
Bill Whedon  whedon@netcom.com


-- 
C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads