GSTXP(3NCARG)
β¨ 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 charactern+lappears to the right of charactern. 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 charactern+1to the left of charactern. this is text path "left".2β draw charactern+1above charactern. this is text path "up".3β draw charactern+1below charactern. 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 π
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
- 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