GSET_CHAR_EXPAN(3NCARG)
π 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 theGTXoutput primitive.
ok let's break it down because the numbers are kinda iconic ngl:
- a
char_expanof10.0would specify a character that is 10 times as wide as normal. like, WIDE. chonky. main character energy. π«Ά - a
char_expanof0.1would 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 π
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
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms