GINQ_TEXT_FONT_PREC(3NCARG)

✨ NAME ✨

okay so bestie, this is ginq_text_font_prec from the NCAR Graphics manual (that's the 3NCARG section, iykyk) β€” and what it does is retrieve the current setting of the text font and precision values. that's the whole vibe. it asks, it tells you. no drama. πŸ’…


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void ginq_text_font_prec(Gint *err_ind, Gtext_font_prec
*text_font_prec);

like, that's the whole incantation. two pointers in, truths out. ✨


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea on each of the arguments, because they're doing different jobs and we love them for it:

  • err_ind β€” (Output) this is the vibe check. if the inquired values can't be returned correctly, a non-zero error indicator gets dropped into err_ind. otherwise it's a clean zero. if you wanna know what the error indicators actually mean, go consult the "User's Guide for NCAR GKS-0A Graphics" β€” that's where the lore lives. πŸ“–
  • text_font_prec.font β€” (Output) hands you the font number, as set by default or by a call to gset_text_font_prec. and listen: font number one is a simple default ASCII font. meanwhile values for font between -2 and -20 (inclusive, bestie, both ends count) are Hershey fonts. iconic little range. 🍫
  • text_font_prec.prec β€” (Output) gives you the text precision, as set by default or by a call to gset_text_font_prec. possible values include:
    • GPREC_STRING β€” String precision (good)
    • GPREC_CHAR β€” Character precision (better)
    • GPREC_STROK β€” Stroke precision (best) πŸ‘‘

yes it's literally a good/better/best ladder, and yes we're obsessed with that for them.


πŸ¦‹ ACCESS πŸ¦‹

to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. that's the ticket in. πŸŽ€


🌈 SEE ALSO 🌈

Online: gtext(3NCARG), gset_text_path(3NCARG), gset_text_align(3NCARG), gset_text_font_prec(3NCARG), gset_char_ht(3NCARG), gset_char_space(3NCARG), gset_char_up_vec(3NCARG), gset_char_expan(3NCARG), gset_colr_rep(3NCARG), gset_text_colr_ind(3NCARG), ginq_text_path(3NCARG), ginq_text_align(3NCARG), ginq_text_font_prec(3NCARG), ginq_char_ht(3NCARG), ginq_char_space(3NCARG), ginq_char_up_vec(3NCARG), ginq_char_expan(3NCARG), plotchar(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)

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

(not me linking the entire friend group. the way they all showed up together. 🫢)


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 πŸ’œ β€” it's GINQ_TEXT_FONT_PREC(3NCARG), straight out of NCAR GRAPHICS, dated March 1993, from the UNIX side of the family. periodt. πŸ’…βœ¨πŸŽ€