GSET_CHAR_EXPAN(3NCARG)

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

πŸ’– GSET_CHAR_EXPAN β€” the 3NCARG glow-up πŸ’–

ok so bestie, you know how when you draw text with the GKS primitives, sometimes you're like "hmm this is giving... narrow"? Yeah. This is the routine for that. It's the NCAR GRAPHICS gset_char_expan function and it sets the width to height ratio of text. periodt. ✨


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void gset_char_expan(Gdouble char_expan);

like, that's it. one argument. she's low maintenance. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

  • char_expan (Input) β€” this is the whole vibe. It specifies a deviation of the width to height ratio for characters drawn using the GTX output primitive.

ok let's break it down because the numbers are kinda iconic ngl:

  • a char_expan of 10.0 would specify a character that is 10 times as wide as normal. like, WIDE. chonky. main character energy. 🫢
  • a char_expan of 0.1 would request characters that are 1/10th as wide as normal. snatched. tiny waist. 🧚
  • the character height stays unchanged the whole time β€” we're only stretching the width, bestie, not the whole girl. πŸ’œ
  • char_expan > 0. β€” that's the rule. positive numbers only, no negatives, no zero, we don't do that here.
  • by default, char_expan = 1.0 🌈
not me stressing that these are literally deviations from the normal width to height ratio, so 1.0 is just the baseline and everything else is you choosing chaos (affectionate). πŸ’€

πŸ”₯ ACCESS πŸ”₯

to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the whole entrance fee, no cap. πŸ’«


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go read these too:

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_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

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


and that's the tea πŸ“ β€” this page is UNIX, dated March 1993, and it's literally serving GSET_CHAR_EXPAN(3NCARG) realness. go stretch some letters, bestie, you ate. βœ¨πŸ’–πŸŽ€

πŸ“¦ where this page comes from