PLGFONT(3plplot)

πŸ’… PLGFONT(3plplot) β€” like, the PLplot API, bestie πŸŽ€

okay so real talk, this is page PLGFONT(3plplot) from the PLplot API and it's literally about peeking at your font's whole personality. let's get into it ✨


🌸 NAME 🌸

plgfont β€” get family, style and weight of the current font

like, it interrogates your font. respectfully. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

plgfont(p_family, p_style, p_weight)

that's it. three lil args. she's lowkey minimal. πŸ’…


✨ DESCRIPTION ✨

So plgfont gets information about the current font. simple as that. if you wanna know more about how font selection works, the PLplot documentation has you covered β€” go read it, it's giving reference material πŸ‘‘

Redacted form: plgfont(p_family, p_style, p_weight)

This function is used in example 23. (yes, that example. iconic behavior honestly 🌟)


πŸŽ€ ARGUMENTS πŸŽ€

  • p_family (PLINT_NC_SCALAR(3plplot), output) β€” returns the current font family value. the available values live in 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. and if p_family is NULL then the font family just... doesn't get returned. no family for you πŸ™ˆ
  • p_style (PLINT_NC_SCALAR(3plplot), output) β€” returns the current font style value. again, 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. slay but make it conditional πŸ’€
  • p_weight (PLINT_NC_SCALAR(3plplot), output) β€” returns the current font weight value. same deal, the available values come from 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. sometimes u just don't wanna know how bold she is 😭
fr fr bestie, those NULL cases are your escape hatch β€” pass NULL for anything you don't care about and it just won't be filled in. no cap, no error, just vibes. πŸ’œ

πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history.

like, a lot of people. an entire ensemble cast. main character energy across the board 🌈🫢


⭐ SEE ALSO ⭐

PLplot documentation at http://plplot.sourceforge.net/documentation.php.

go click it, it's literally right there πŸ¦‹


that's the whole page bestie, go forth and font-check responsibly βœ¨πŸ’…

sign-off szn πŸŽ€ β€” this page is PLGFONT(3plplot), dated August, 2026, and it came to you straight from the PLplot API. mwah πŸ’–

πŸ“¦ where this page comes from