GSET_CHAR_EXPAN(3NCARG)

✨ GSET_CHAR_EXPAN ✨

okay bestie, welcome to gset_char_expan β€” aka Set character expansion factor. It's a NCAR Graphics thing (section 3NCARG) and it does exactly one job: it sets the width to height ratio of text. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void gset_char_expan(Gdouble char_expan);

πŸ¦‹ DESCRIPTION πŸ¦‹

  • char_expan (Input) β€” this is the one and only thing you're handing over, and it specifies a deviation of the width to height ratio for characters drawn using the GTX output primitive. like, how wide do you want your letters compared to how tall they are? that's the question she's answering. πŸŽ€

and the math is so cute:

  • char_expan of 10.0 would specify a character that is 10 times as wide as normal. wide letters. W I D E. 😭
  • char_expan of 0.1 would request characters that are 1/10th as wide as normal. skinny legend behavior fr fr.
  • The character height remains unchanged β€” she only messes with the width, the height is not her business. periodt.
  • char_expan > 0 β€” that's the rule, bestie. positive numbers only.
  • By default, char_expan = 1.0 ✨ (normal width, no drama).
⚠️ heads up: keep it greater than zero. That's the constraint, that's the boundary, don't fight it.

πŸ‘‘ ACCESS πŸ‘‘

To use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. no libraries, no letters, no cap. 🫢


πŸ’– 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_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 whole page, gorgeous πŸ’œ β€” NCAR Graphics, from the UNIX corner of the world, dated March 1993 (yes she's an elder icon and she's still serving). mwah. πŸŽ€βœ¨πŸ’–