GINO Graphics Suite - GINO v9.0  

gSetFontForm

Syntax

[C/C++:]
void gSetFontForm(int rep);
[F90:]
subroutine gSetFontForm(rep)
integer, intent(in) :: rep

Arguments

rep
Software font representation

= 0, Normal font representation (default)
= 1, Display as font 0
= 2, Display as boxes (type 1)
= 3, Display as font 0 and boxes (type 1)
= 4, Display as boxes (type 2)
= 5, Display as font 0 and boxes (type 2)
= 6, Display as boxes (type 3)
= 7, Display as font 0 and boxes (type 3)

Description

The routine gSetFontForm() can be used to speed up the display of software fonts by representing the output string using font 0 and/or a series of boxes showing the size of the characters in the actual font.

Box type 1 is drawn with the width and height equal to the width and height of the character alone.

Box type 2 is drawn with the width and height equal to the width and height of the full character box including left and right bearings, and space above and below for underlining.

Box type 3 is drawn with the width equal to the width of the character and the height equal to the space occupied by the full character box height.

Setting rep > 0 has the additional effect of characters always being drawn with the default pen width, thus ignoring any setting of gSetFontWeight().

gSetFontForm() does not affect the default font 0 and hardware, Greek and symbol fonts are not replaced by font 0 for odd values of rep.

If rep is outside the above range, a warning message is output and the default value of zero is used.

See Also

gSetFontForm Usage
gSetFontWeight