`plgfont`: Get family, style and weight of the current font
Prev | Chapter 18. The Common API for PLplot | Next

#### `plgfont`: Get family, style and weight of the current font

`plgfont (` | p_family,
| p_style,
| p_weight`)`;

Gets information about current font. See the section called “FCI” for more information on font selection.

`p_family` (`PLINT *`, output)

  Pointer to variable with the current font family. The available values are given by the PL_FCI_* constants in plplot.h. Current options are PL_FCI_SANS, PL_FCI_SERIF, PL_FCI_MONO, PL_FCI_SCRIPT and PL_FCI_SYMBOL. If p_family is NULL then the font family is not returned.

`p_style` (`PLINT *`, output)

  Pointer to variable with the current font style. The available values are given by the PL_FCI_* constants in plplot.h. Current options are PL_FCI_UPRIGHT, PL_FCI_ITALIC and PL_FCI_OBLIQUE. If p_style is NULL then the font style is not returned.

`p_weight` (`PLINT *`, output)

  Pointer to variable with the current font weight. The available values are given by the PL_FCI_* constants in plplot.h. Current options are PL_FCI_MEDIUM and PL_FCI_BOLD. If p_weight is NULL then the font weight is not returned.

Redacted form: `plgfont(p_family, p_style, p_weight)`

This function is used in example 23.

Prev | Up | Next
`plgfnam`: Get output file name | Home | `plglevel`: Get the (current) run level