GSET_TEXT_PATH(3NCARG)

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

✨ GSET_TEXT_PATH(3NCARG) ✨

okay bestie, welcome to GSET_TEXT_PATH from the NCAR GRAPHICS manual (yes that's the manual name, it's giving vintage academic chic and we're obsessed) πŸ’–


πŸŽ€ NAME πŸŽ€

gset_text_path (aka Set text path) β€” she sets the text paths, aka the directions, in which text is gonna get drawn. that's it. that's the job. πŸ’…


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void gset_text_path(Gtext_path text_path);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, bestie. you hand her one thing and she decides which way your whole string of characters is gonna march across the screen. iconic behavior fr fr.

  • text_path (Input) β€” this is the direction your character string gets drawn in. the options are giving main character energy:
    • GPATH_RIGHT β€” draws the characters so character n+1 shows up to the right of character n. this is text path "right" and it's the default. the standard. the blueprint. πŸ‘‘
    • GPATH_LEFT β€” character n+1 goes to the left of character n. text path "left". going backwards but make it fashion πŸ’…
    • GPATH_UP β€” character n+1 sits above character n. text path "up". vertical queen 🧚
    • GPATH_DOWN β€” character n+1 drops below character n. text path "down". gravity said what it said 😭

now the important part, and no cap this matters: the right, left, up, and down directions are all relative to the character up vector. the right text path direction is perpendicular to the up vector direction. so like, they're a package deal, you can't just pick one and ignore the other, iykyk.

and here's the slay example: if you wanna draw a text string at a 45 degree angle, the character up vector would be (-1,1) and the text path would be right. periodt. that's the whole vibe right there πŸ”₯


πŸ’œ ACCESS πŸ’œ

to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. no libraries, no vibes. it's that simple bestie 🫢


🌈 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

like, go read your friends too, they're all part of the same friendship group πŸ’–


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

yes bestie, there are Rules. read the License Agreement. she's serious about it πŸ™ˆ

and that's the whole page, you ate that πŸ’… this little gem is a UNIX classic from March 1993, page GSET_TEXT_PATH(3NCARG) β€” go forth and draw your text in literally any direction you want. mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from