GSET_TEXT_PATH(3NCARG)

✨ GSET_TEXT_PATH(3NCARG) ✨

okay so bestie, welcome to the NCAR GRAPHICS corner of the manpage universe πŸ’– this one lives in section 3NCARG and it's literally the glow-up button for which direction your text struts across the screen πŸ¦‹


🌸 NAME 🌸

gset_text_path (aka Set text path) β€” sets the text paths, aka the directions, in which text is gonna be drawn. periodt.


✨ SYNOPSIS ✨

#include <ncarg/gks.h>

void gset_text_path(Gtext_path text_path);

πŸ’… DESCRIPTION πŸ’…

  • text_path β€” (Input) this is the direction your character string is gonna get drawn in, no cap. your options are giving:
    • GPATH_RIGHT β€” 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, this is what you get πŸ’…
    • GPATH_LEFT β€” draw character n+1 to the left of character n. this is text path "left".
    • GPATH_UP β€” draw character n+1 above character n. this is text path "up".
    • GPATH_DOWN β€” draw character n+1 below character n. this is text path "down".

so here's the tea πŸ«– the right, left, up, and down directions are relative to the character up vector. the right text path direction is perpendicular to the up vector direction. so like, if you wanna draw a text string at a 45 degree angle, your character up vector would be (-1,1), and the text path would be right. it's giving trigonometry but make it fashion ✨


πŸ”‘ ACCESS πŸ”‘

to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. that's the entry fee bestie, no skipping πŸ’€


πŸ‘€ SEE ALSO πŸ‘€

Online: gtext(3NCARG), gset_text_align(3NCARG), gset_text_font_prec(3NCARG), gset_char_ht(3NCARG), gset_char_space(3NCARG), gset_char_up_vec(3NCARG), gset_char_expan(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, bestie πŸ’– this lil icon dropped back in March 1993 under the UNIX manual, and it's been serving text-direction realness ever since πŸ‘‘ mwah, slay, go draw some words at a 45 degree angle πŸŽ€