C Library Functions - ycentertext (3)
NAME
ycentertext(3f) - [M_draw:TEXT] center text in the Y direction
(LICENSE:PD)
CONTENTS
Synopsis
Description
Examples
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.
EXAMPLES
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
| Nemo Release 3.1 | ycentertext (3) | June 29, 2025 |
Generated by manServer 1.08 from ccdc8687-bd0c-4283-9cb6-663eb80da032 using man macros.