[UP]


Manual Reference Pages  - textweight (3)

NAME

textweight(3f) - [M_draw:TEXT] Defines the weight of the fonts. (LICENSE:PD)

CONTENTS

Synopsis
Description
Example

SYNOPSIS

subroutine textweight(ival) integer ival

DESCRIPTION

Defines the weight of the fonts. Currently, the predefined constants in C and Fortran are D_NORMAL and D_BOLD; which correspond to 0 and 1. This is not the same as using linethickess to change the appearance of a software font. The font is redrawn multiple times with a slight offset to create the bold appearance.

EXAMPLE

Sample program:

   program demo_textweight
   use M_draw
   implicit none
   real,parameter :: w=40.0
   integer        :: key
      call prefsize(600,600)
      call vinit(’ ’)
      call color(D_BLACK)
      call clear()
      call color(D_YELLOW)
      call page(-w,w,-w,w)
      call font("times.rb")
      call linewidth(180)
      call textsize(15.0,15.0)
      call centertext(.true.)
      call linewidth(0);call color(D_BLUE)
      call move2(0.0, W/2.0)

call textweight(0) call drawstr(’NORMAL’)

call linewidth(0);call color(D_MAGENTA) call move2(0.0, 0.0-W/2.0)

call textweight(1) call drawstr(’BOLD’)

call vflush() key=getkey() call vexit() end program demo_textweight


textweight (3) March 11, 2021
Generated by manServer 1.08 from a3a3a6a4-30b2-48de-b53a-ec6877cab0c0 using man macros.