GSTXFP(3NCARG)
π GSTXFP β set text font and precision π
okay bestie, welcome to GSTXFP, a lil routine from the NCAR GRAPHICS manual pages (this one lives in section 3NCARG). she's giving "set text font and precision" and honestly? she's iconic for it. β¨
πΈ NAME πΈ
GSTXFP (Set text font and precision) β literally just sets the text font and precision. that's the whole job. she's a simple queen. π
π 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(Integer, Input) β picks which text font gets used in all the subsequent calls to theGTXoutput primitive. here are ur options, no cap:1β ASCII font (this is the default)-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
so real talk: the Hershey fonts are not standardized by GKS β they're locally implemented in NCAR GKS-0A. and GKS is strict about this: any locally implemented font has to be given a negative font number. that's why all the Hershey ones have lil minus signs, bestie. π
want to actually see these 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 FONT value described here β because PLOTCHAR doesn't have to follow the strictures that GKS imposes on font names for GSTXFP. (PLOTCHAR said "rules are for other people" fr fr π)
PREC(Integer, Input) β sets the precision used in subsequent calls to theGTXoutput primitive, for the font typeFONT. options: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 π₯
here's the tea π: if u access the Hershey fonts via GSTXFP and GTX, then the characters are not stroked until viewing time. but if u access the Hershey fonts via PLOTCHAR, then the characters are stroked by PLOTCHAR itself. and that can make a significant difference in metafile sizes. so likeβ¦ choose wisely, it's giving β¨consequencesβ¨.
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. load her up, she's ready. π«Ά
π 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.
okay that's the whole page, bestie, u ate that π this lil baddie came to u from the UNIX manual, dated March 1993, under the name GSTXFP(3NCARG) β and yes, she's still serving font-and-precision realness after all these years. periodt. π
β¨π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms