GSTXP(3NCARG)

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

✨ GSTXP (Set text path) ✨

okay bestie, welcome to the glow-up era of your text πŸ’… this little routine sets the text paths β€” aka the directions β€” in which text gets drawn. it's giving "which way do the letters walk", and honestly? iconic.

it lives in the NCAR Graphics manual, section 3NCARG, and no it's not a new app, it's Fortran from 1992 and it still ate. πŸ’–


🌸 SYNOPSIS 🌸

CALL GSTXP (TXP)

πŸŽ€ C-BINDING SYNOPSIS πŸŽ€

#include <ncarg/gks.h>

void gset_text_path(Gtext_path text_path);

πŸ¦‹ DESCRIPTION πŸ¦‹

  • TXP β€” (Integer, Input) β€” the direction your character string gets drawn in. this is the whole vibe check of the routine. your options are:
    • 0 β€” draw successive characters in the string so that character n+l appears to the right of character n. this is text path "right" and it's the default, so if you don't say anything, bestie, this is what you get. πŸ’…
    • 1 β€” draw character n+1 to the left of character n. this is text path "left".
    • 2 β€” draw character n+1 above character n. this is text path "up".
    • 3 β€” draw character n+1 below character n. this is text path "down".

the right, left, up, and down directions are all relative to the character up vector. and listen β€” the right text path direction is perpendicular to the up vector direction. so the way that these two things interact is genuinely the whole plot twist. 🌈

like, to draw a text string at a 45 degree angle, the character up vector would be (-1,1), and the text path would be right. that's it. that's the move. periodt. ✨


πŸ”‘ ACCESS πŸ”‘

to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the entry fee, bestie, no cap. 🫢


πŸ‘€ SEE ALSO πŸ‘€

Online: gtx, gstxal, gstxfp, gschh, gschsp, gschup, gschxp, gscr, gstxci, gqtxp, gqtxal, gqtxfp, gqchh, gqchsp, gqchup, gqchxp, plotchar, gset_text_path

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, bestie πŸŽ€ this was the GSTXP entry from the NCAR Graphics manual, dated 14 January 1992, in the old-school UNIX manual formatting. go forth and rotate your text at 45 degrees, you main character. πŸ¦‹βœ¨

πŸ“¦ where this page comes from