GINO Graphics Suite - GINO v9.0  

gSetFontFillStyle

Syntax

[C/C++:]
void gSetFontFillStyle(GFNTFILSTY *style);
[F90:]
subroutine gSetFontFillStyle(style)
type (GFNTFILSTY), intent(in) :: style

Arguments

style.type
font style type

= GOUTLINE, Outline only
= GFILLED, Filled font using foreground and background fill and line styles
= GOUTFILL, Filled font and outline
> 2, Hardware dependent

style.ffill
Font foreground fill style

= GNOFILL, No foreground filling
= GSOLID, Solid fill
= 1 - 256, Fill style index (hardware fill) or hatch style index (software fill)
> 256, Fill style index (hardware fill) or solid fill (software fill)

style.fline
Font foreground line style

= GCURRENT, Current line style
= 1 - 256, Line style index
> 256, Current line style

style.bfill
Font background fill style

= GNOFILL, No background filling
= GSOLID, Solid fill
= 1 - 256 Fill style index (hardware fill) or hatch style index (software fill)
> 256, Fill style index (hardware fill) or solid fill (software fill)
style.bline
Font background line style

= GCURRENT, Current line style
= 1 - 256, Line style index
> 256, Current line style

Description

The routine gSetFontFillStyle() sets the style for hardware and polygon fonts.

For hardware fonts, style.type sets the hardware font style. On most devices only solid fonts are available in which case the filled font will be displayed in the current colour and this routine will have no effect. However, on some devices a number of styles are available and style.type may be used to select from those available. It is unlikely that the fill and line styles will be used for hardware fonts.

For software fonts that are defined as polygon fonts style.type sets the style of the font. When style.type = GOUTLINE or GOUTFILL the outline is drawn in the current colour. The foreground and background fill and line styles are not used for style.type = GOUTLINE.

For fill styles GFILLED and GOUTFILL the foreground and background fill style can be independently selected by setting the fill style to GNOFILL if it is not required. The fill style and line styles are set using gDefineHatchStyle() and gDefineLineStyle() respectively. Filling may be done in hardware or software depending on the capabilities of the device and the setting of gSetFillMode().

See Also

gSetFontFillStyle Usage
gSetCharFont
gSetFillMode
gDefineHatchStyle
gDefineLineStyle