1 /*  -- translated by f2c (version 20100827).
2    You must link the resulting object file with libf2c:
3 	on Microsoft Windows system, link with libf2c.lib;
4 	on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 	or, if you install libf2c.a in a standard place, with -lf2c -lm
6 	-- in that order, at the end of the command line, as in
7 		cc *.o -lf2c -lm
8 	Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9 
10 		http://www.netlib.org/f2c/libf2c.zip
11 */
12 
13 #include "libtinyf2c.h"
14 
15 /* Table of constant values */
16 
17 static logical c_true = TRUE_;
18 static logical c_false = FALSE_;
19 
20 /* ----------------------------------------------------------------------- */
sgtxxu_(real * ux,real * uy,char * chars,real * rsize,integer * irota,integer * icent,integer * index,integer * icolor,ftnlen chars_len)21 /* Subroutine */ int sgtxxu_(real *ux, real *uy, char *chars, real *rsize,
22 	integer *irota, integer *icent, integer *index, integer *icolor,
23 	ftnlen chars_len)
24 {
25     static logical lfcatr;
26     extern /* Subroutine */ int swqfcc_(logical *), msgdmp_(char *, char *,
27 	    char *, ftnlen, ftnlen, ftnlen), swsfcm_(logical *), swslcl_(
28 	    integer *), sztxcl_(void), sztxop_(real *, integer *, integer *,
29 	    integer *), sztxzu_(real *, real *, char *, ftnlen);
30 
31     swqfcc_(&lfcatr);
32     if (! lfcatr) {
33 	msgdmp_("M", "SGTXXU", "FULL COLOR MODE IS NOT SUPPORTED.", (ftnlen)1,
34 		 (ftnlen)6, (ftnlen)33);
35     }
36     if (*rsize == 0.f) {
37 	msgdmp_("M", "SGTXXU", "TEXT HEIGHT IS 0 / DO NOTHING.", (ftnlen)1, (
38 		ftnlen)6, (ftnlen)30);
39 	return 0;
40     }
41     if (*rsize < 0.f) {
42 	msgdmp_("E", "SGTXXU", "TEXT HEIGHT IS LESS THAN ZERO.", (ftnlen)1, (
43 		ftnlen)6, (ftnlen)30);
44     }
45     if (! (-1 <= *icent && *icent <= 1)) {
46 	msgdmp_("E", "SGTXXU", "CENTERING OPTION IS INVALID.", (ftnlen)1, (
47 		ftnlen)6, (ftnlen)28);
48     }
49     if (*index == 0) {
50 	msgdmp_("M", "SGTXXU", "TEXT INDEX IS 0 / DO NOTHING.", (ftnlen)1, (
51 		ftnlen)6, (ftnlen)29);
52 	return 0;
53     }
54     if (*index < 0) {
55 	msgdmp_("E", "SGTXXU", "TEXT INDEX IS LESS THAN 0.", (ftnlen)1, (
56 		ftnlen)6, (ftnlen)26);
57     }
58     swsfcm_(&c_true);
59     swslcl_(icolor);
60     sztxop_(rsize, irota, icent, index);
61     sztxzu_(ux, uy, chars, chars_len);
62     sztxcl_();
63     swsfcm_(&c_false);
64     return 0;
65 } /* sgtxxu_ */
66 
67