>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  TEXTPOS

TEXTPOS

TEXTPOS

Name


      TEXTPOS

Purpose


      Find size and angle of text string given points at each end.

Category


Calling Sequence


      textpos, txt, p1, p2, ix,iy,sz,ang

Inputs


      txt = Desired text string. in
      p1 = [x1,y1] = text starting point. in
      p2 = [x2,y2] = text end point. in

Keyword Parameters


Keywords


        /DATA input points in data coordinates (default).
        /DEVICE input points in device coordinates.
        /NORMAL input points in normalized coordinates.
        ALIGNMENT=jst Desired text alignment (def=0.).

Outputs


      ix,iy = Returned device coordinates of text. out
      sz = Returned charsize for text. out
      ang = Returned angle of text. out

Common Blocks


Notes


      Notes: If p1 is desired text string starting point then
        xyouts may use the same coordinate system as p1.
        But if ALIGNMENT is not 0 then use the returned device
        coordinates, ix,iy. Text is not plotted, only the
        position, size, and angle is determined. Use xyouts
        to actually plot the text and remember to use the same
        value for the alignment parameter.

Modification History


      R. Sterner, 1996 Mar 3
  Copyright (C) 1996, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us