GSTXFP(3NCARG)
β¨ 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
GSTXFPandGTX, then the characters are not stroked until viewing time. - If you access the Hershey fonts via
PLOTCHAR, then the characters are stroked byPLOTCHARitself.
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 π
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
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms