🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.misc
2 messages
2 total messages Started by Alastair McColl Sat, 23 Jan 1993 20:44
Re: Drawing Text on its side in BC++?
#2288
Author: Alastair McColl
Date: Sat, 23 Jan 1993 20:44
30 lines
1512 bytes
> Steven Greco writes:
>
> Msg-ID: <C17xG3.DMw@cs.uiuc.edu>
> Posted: Thu, 21 Jan 1993 19:14:2
>
> Org.  : University of Illinois at Urbana-Champaign
>
> 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


There are two arguments to DrawText() that control the angle of the type
characters. One is referred to as "escapement" and I can't remember the other
one off hand, but the difference is subtle... I don't want to look it up
right now, but they're there.

--
Alastair McColl, Bird's Eye PMSB
------------------------------------------------------------- email:
a2111@mindlink.bc.ca  | "GRAVITY: NOT JUST A GOOD IDEA,
tel/fax: (604)873-8434       |            IT'S THE LAW"
Re: Drawing Text on its side in BC++?
#2374
Author: Bob Burrow
Date: Tue, 26 Jan 1993 17:39
32 lines
2081 bytes
> Steven Greco writes:
>
> Posted: Thu, 21 Jan 1993 19:14:2
> Org.  : University of Illinois at Urbana-Champaign
> 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

You have to create the font with the rotation attribute -- set nOrientation
and nEscapement in CreateFont or CreateFontIndirect.  nOrientation is the
orientation of the letters and nEscapement is the angle the text is
written out as.  Both these are ints in tenths of a degree.  There's an
example program wth bcc, truetype.c, found under examples/win31/truetype
if you want to see how it's done.  
As an aside -- has anyone tried printing rotated fonts?  I found that the
hpIII & hpIIp drivers produce different (& both incorrect) outputs! 

Hope this helps...
Bob
--
 Bob Burrow                           Department of Chemistry          
 rburrow@alchemy.chem.utoronto.ca     University of Toronto      
-- 
 Bob Burrow                           Department of Chemistry          
 rburrow@alchemy.chem.utoronto.ca     University of Toronto      
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