[UP]


Manual Reference Pages  - ycentertext (3)

NAME

ycentertext(3f) - [M_draw:TEXT] center text in the Y direction (LICENSE:PD)

CONTENTS

Synopsis
Description
Example

SYNOPSIS

subroutine ycentertext()

DESCRIPTION

Centers text in the Y direction. The text string will so that its center line is aligned with the current y position. Top justification and Bottom justification are turned off.

EXAMPLE

Sample program:

   program demo_ycentertext
   use M_draw
   implicit none
   real    :: x1, x2, y1, y2
   real    :: scl, ax, bx
   integer :: key
      call prefsize(1200,120)
      call vinit(’ ’)
      call color(D_BLACK)
      call clear()
      x1=0; x2=40; y1=0; y2=4; scl=1.9
      call page(x1,x2,y1,y2)
      call textsize(0.9*scl,1.4*scl)
      call font("times.rb")
      call linewidth(200)
      AX=(x1+x2)/2.0; BX=(y1+y2)/2.0
      call move2(AX,BX)
      call ycentertext()
      call color(D_MAGENTA)
      call drawstr("ycentertext()")
      call color(D_CYAN)
      call move2(AX-1.0,BX)
      call draw2(AX+1.0,BX)
      call move2(AX,BX-1.0)
      call draw2(AX,BX+1.0)
      call vflush()
      key=getkey()
      call vexit()
   end program demo_ycentertext


ycentertext (3) March 11, 2021
Generated by manServer 1.08 from 2f989ae4-144d-4602-b419-1bcf1f302969 using man macros.