[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2913.0. "Drawing text vertically?" by FORTSC::KISHIMURA () Mon Jun 11 1990 14:50

X$DRAW_IMAGE_STRING draws a character string "horizontally" in a window.  
Unfortunately, I'd like to draw character strings vertically.  Is this 
possible?   If so, can anyone shed some light on how I go about it?
T.RTitleUserPersonal
Name
DateLines
2913.1STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentMon Jun 11 1990 14:5810
    
    Nope.  There is no inherent X11 support.  You need to use the Display
    Postscript Extension, implement a text rotation extension, find a
    library which implements rotated text, or rotate it yourself.  To
    rotate it on the client side, requires that you first be able to
    read the glyph definition into a bitmap, which is then easily rotated
    by 90� by simple special-case logic, and then drawn using PUT_IMAGE
    to the screen.
    
    
2913.2DAVIS::peterPeter Davis, ZKO2-2/M28, 381-0838Wed Jun 13 1990 13:2820
Re/ .1:

When you say "draw character strings vertically," do you mean with the
individual characters upright
				L
				i
				k
				e

				t
				h
				i
				s
				?
Or do you mean with the characters rotated?

If you want the characters upright, you just have to figure out where
to position them, and draw the characters individually.  If you want to
rotate the individual characters, then you will have to do as Fred
suggests in .1.  Display PostScript is the easiest route.
2913.3Rotated...FORTSC::KISHIMURAThu Jun 21 1990 14:101
    No, I want the characters rotated...