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 the GTX output 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 the GTX output primitive, for the font type FONT. 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 (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. πŸ’…βœ¨πŸŽ€