GSCHSP(3NCARG)
β¨ GSCHSP β it's giving "Set character spacing" β¨
okay bestie, so this is a page from the NCAR GRAPHICS manual, and today's main character is GSCHSP. she's a lil Fortran-callable routine whose whole job is setting the character spacing for text. lowkey simple, highkey iconic. π
πΈ NAME πΈ
GSCHSP (Set character spacing) β sets the character spacing for text. that's it, that's her whole vibe. π
π¦ SYNOPSIS π¦
CALL GSCHSP (CHSP)
π C-BINDING SYNOPSIS π
if you're living that C life instead (valid!), here's your glow-up version:
#include <ncarg/gks.h>
void gset_char_space(Gdouble char_space);
π DESCRIPTION π
CHSPβ (Real, Input) β this is the one telling us how much extra white space gets squeezed in between characters that are drawn using theGTXoutput primitive. and the way thatCHSPis measured?? it's a fraction of the character height. so not a fixed number of pixels, it scales with the text. periodt. β¨
so like, here's the tea on what your number actually does:
- A character spacing of zero positions the character body of each successive character contiguously, with enough white space between them to produce pleasing normal spacing. so it's snug but still cute. no cap, this is the default look.
- A positive value inserts extra space between successive characters. spread them out, let them breathe, main character energy for every letter fr fr. π
- A negative value causes successive characters to overlap. yes, actually overlap. dramatic, chaotic, occasionally exactly what you want. π
and by default, CHSP = 0.0. so if you never touch it, bestie, you get the pleasing normal spacing. π«Ά
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole thing. go get your library, iykyk. π
π SEE ALSO π
Online: gtx, gstxp, gstxal, gstxfp, gschh, gschup, gschxp, gscr, gstxci, gqtxp, gqtxal, gqtxfp, gqchh, gqchsp, gqchup, gqchxp, plotchar, gset_char_space
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.
not me putting the legal bit in a whole section but like... it's required, bestie. read it. π«‘
okay that's the whole page!! π¦π thanks for scrolling all the way to the bottom, you're literally the best. this was NCAR Graphics, documented in the UNIX manual, dated March 1993 β yeah she's vintage, she's timeless, she ate and left no crumbs. mwah. π πΈ
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms