Article View: comp.os.ms-windows.programmer.misc
Article #2374Re: Drawing Text on its side in BC++?
From: Bob Burrow
Date: Tue, 26 Jan 1993 17:39
Date: Tue, 26 Jan 1993 17:39
32 lines
2081 bytes
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
Technical Details
Message-ID:
<1993Jan26.173908.28351@alchemy.chem.utoronto.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!rburrowReferences:
<19953@mindlink.bc.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!rburrow From: rburrow@alchemy.chem.utoronto.ca (Bob Burrow) Subject: Re: Drawing Text on its side in BC++? Message-ID: <1993Jan26.173908.28351@alchemy.chem.utoronto.ca> Followup-To: Font, Rotation Summary: Do it in CreateFont(Indirect) Organization: University of Toronto Chemistry Department References: <19953@mindlink.bc.ca> Date: Tue, 26 Jan 1993 17:39:08 GMT Lines: 32