C Library Functions  - 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


Nemo Release 3.1 textweight (3) July 22, 2023
Generated by manServer 1.08 from 26a068a3-9003-4476-83bc-5c9d5cd1d189 using man macros.