1GSET_TEXT_FONT_PREC(3NCARG)      NCAR GRAPHICS     GSET_TEXT_FONT_PREC(3NCARG)
2
3
4

NAME

6       gset_text_font_prec  (Set text font and precision) - sets the text font
7       and precision.
8

SYNOPSIS

10       #include <ncarg/gks.h>
11
12       void gset_text_font_prec(const Gtext_font_prec *text_font_prec);
13

DESCRIPTION

15       text_font_prec.font
16                   (Gint, Input) Specifies the text font to be used in  subse‐
17                   quent calls to the gtext output primitive. Options are:
18
19                     1    ASCII font (default)
20
21                    -2    Hershey cartographic Roman
22
23                    -3    Hershey cartographic Greek
24
25                    -4    Hershey simplex Roman
26
27                    -5    Hershey simplex Greek
28
29                    -6    Hershey simplex script
30
31                    -7    Hershey complex Roman
32
33                    -8    Hershey complex Greek
34
35                    -9    Hershey complex script
36
37                   -10    Hershey complex italic
38
39                   -11    Hershey complex Cyrillic
40
41                   -12    Hershey duplex Roman
42
43                   -13    Hershey triplex Roman
44
45                   -14    Hershey triplex italic
46
47                   -15    Hershey Gothic German
48
49                   -16    Hershey Gothic English
50
51                   -17    Hershey Gothic Italian
52
53                   -18    Hershey math symbols
54
55                   -19    Hershey symbol set 1
56
57                   -20    Hershey symbol set 2
58
59                          The  Hershey  fonts  are not standardized by GKS but
60                          are locally implemented in NCAR GKS-0A. GKS requires
61                          that such locally implemented fonts be assigned neg‐
62                          ative font numbers. To view the Hershey fonts,  look
63                          at  the  plots  produced  from  the PLOTCHAR example
64                          (execute "ncargex epltch" to  get  a  metafile)  and
65                          examine  the plot titled "PLCHHQ - FONTCAP DATABASES
66                          ADDED 6/90".  The font numbers there are  the  abso‐
67                          lute  values  of  the  value for text_font_prec.font
68                          described here (PLOTCHAR has no need to  follow  the
69                          structures  that  GKS  imposes  on  font  names  for
70                          gset_text_font_prec).
71
72       text_font_prec.prec
73                   (Input) Gives the precision used in subsequent calls to the
74                   gtext  output  primitive for font type text_font_prec.font.
75                   Options are:
76
77                   GPREC_STRING
78                          String precision (good). This is the GKS default.
79
80                   GPREC_CHAR
81                          Character precision (better).
82
83                   GPREC_STROKE
84                          Stroke precision (best). This  is  the  default  for
85                          NCAR GSK-0A.
86

USAGE

88       If  one  accesses  the Hershey fonts via gset_text_font_prec and gtext,
89       then the characters  are  not  stroked  until  viewing  time.   If  one
90       accesses  the  Hershey  fonts  via  PLOTCHAR,  then  the characters are
91       stroked by PLOTCHAR itself.  This can make a significant difference  in
92       metafile sizes.
93

ACCESS

95       To  use  the  GKS  C-binding  routines,  load the ncarg_gks and ncarg_c
96       libraries.
97

SEE ALSO

99       Online: gtext(3NCARG), gset_text_path(3NCARG), gset_text_align(3NCARG),
100       gset_char_ht(3NCARG),                          gset_char_space(3NCARG),
101       gset_char_up_vec(3NCARG),                      gset_char_expan(3NCARG),
102       gset_colr_rep(3NCARG),                      gset_text_colr_ind(3NCARG),
103       ginq_text_path(3NCARG),                        ginq_text_align(3NCARG),
104       ginq_text_font_prec(3NCARG),                      ginq_char_ht(3NCARG),
105       ginq_char_space(3NCARG),                      ginq_char_up_vec(3NCARG),
106       ginq_char_expan(3NCARG),         plotchar(3NCARG),         gks(3NCARG),
107       ncarg_gks_cbind(3NCARG),
108
109       Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR  Graphics  Funda‐
110       mentals, UNIX Version
111
113       Copyright (C) 1987-2007
114       University Corporation for Atmospheric Research
115
116       This  documentation  is  free  software; you can redistribute it and/or
117       modify it under the terms of the GNU General  Public  License  as  pub‐
118       lished  by  the  Free  Software  Foundation;  either  version  2 of the
119       License, or (at your option) any later version.
120
121       This software is distributed in the hope that it will  be  useful,  but
122       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
123       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General
124       Public License for more details.
125
126       You should have received a copy of the GNU General Public License along
127       with this software; if not, write  to  the  Free  Software  Foundation,
128       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
129
130
131
132UNIX                              March 1993       GSET_TEXT_FONT_PREC(3NCARG)
Impressum