GSTXFP(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ GSTXFP β€” the "set text font and precision" glow-up ✨

okay bestie, so this is a page from the NCAR GRAPHICS manual, and today's main character is GSTXFP. Sit down, hydrate, and let's get into it πŸ’…


🌸 NAME 🌸

GSTXFP β€” aka Set text font and precision β€” sets the text font and precision. That's it. That's the whole job. It picks the font, it picks the precision, and then every GTX call after that is serving whatever you chose. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

CALL GSTXFP (FONT, PREC)

πŸ’œ C-BINDING SYNOPSIS πŸ’œ

#include <ncarg/gks.h>

void gset_text_font_prec(const Gtext_font_prec *text_font_prec);

✨ DESCRIPTION ✨

πŸ’– FONT πŸ’–

FONT (Integer, Input) β€” this is the font you want to use in all the subsequent calls to the GTX output primitive. The options are literally:

  • 1 β€” ASCII font (this one's the default, no cap)
  • -2 β€” Hershey cartographic Roman
  • -3 β€” Hershey cartographic Greek
  • -4 β€” Hershey simplex Roman
  • -5 β€” Hershey simplex Greek
  • -6 β€” Hershey simplex script
  • -7 β€” Hershey complex Roman
  • -8 β€” Hershey complex Greek
  • -9 β€” Hershey complex script
  • -10 β€” Hershey complex italic
  • -11 β€” Hershey complex Cyrillic
  • -12 β€” Hershey duplex Roman
  • -13 β€” Hershey triplex Roman
  • -14 β€” Hershey triplex italic
  • -15 β€” Hershey Gothic German
  • -16 β€” Hershey Gothic English
  • -17 β€” Hershey Gothic Italian
  • -18 β€” Hershey math symbols
  • -19 β€” Hershey symbol set 1
  • -20 β€” Hershey symbol set 2
Now, real talk: the Hershey fonts are not standardized by GKS. They're locally implemented in NCAR GKS-0A. And GKS is very strict about this β€” it requires that locally implemented fonts get assigned negative font numbers. So that's why everything Hershey here is rocking a minus sign, iykyk.

Wanna actually see the Hershey fonts? Go look at the plots produced from the PLOTCHAR example (run ncargex epltch to get a metafile) and check out the plot titled PLCHHQ - FONTCAP DATABASES ADDED 6/90. The font numbers over there are the absolute values of the value for FONT described right here. (PLOTCHAR has no need to follow the strictures that GKS imposes on font names for GSTXFP β€” it's living its own life, periodt.)

πŸŽ€ PREC πŸŽ€

PREC (Integer, Input) β€” this is the precision used in subsequent calls to the GTX output primitive, for the font type FONT. Options are:

  • 0 β€” String precision (good). This is the GKS default.
  • 1 β€” Character precision (better).
  • 2 β€” Stroke precision (best). This is the default for NCAR GSK-0A.

🌈 USAGE 🌈

Okay so here's the tea, and it's a big one:

  • If you access the Hershey fonts via GSTXFP and GTX, then the characters are not stroked until viewing time.
  • If you access the Hershey fonts via PLOTCHAR, then the characters are stroked by PLOTCHAR itself.

This can make a significant difference in metafile sizes. So like… choose wisely, bestie πŸ’€


🫢 ACCESS 🫢

To use GKS routines, load the NCAR GKS-0A library ncarg_gks.


⭐ SEE ALSO ⭐

Online: gtx, gstxp, gstxal, gschh, gschsp, gschup, gschxp, gscr, gstxci, gqtxp, gqtxal, gqtxfp, gqchh, gqchsp, gqchup, gqchxp, plotchar, gset_text_font_prec

Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


and that's the whole page, bestie β€” written for the UNIX manual, dated March 1993, filed under GSTXFP(3NCARG). iconic behavior from 1993 honestly, we stan a legacy manpage πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from