Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gsqgtx(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fonts

Geometric Text Font Format

gsgtat

gsgtxt

gsqgtx

Purpose

     Returns information about the current geometric font.

C Syntax

     void gsqgtx_ (font, select)

     int *font, *select;

FORTRAN Syntax

     subroutine gsqgtx (font, select)

     INTEGER font (32), select

Pascal Syntax

     PROCEDURE gsqgtx_ (

     VAR font: ARRAY [1..32| of INTEGER;
     select: INTEGER
     ): INTEGER [PUBLIC|;

Description

     The  gsqgtx  subroutine  returns  information  about  the
     active geometric font.

     Parameters

     font              Contains,  on  return,  the  character-
                       istics of  the selected  PCS descriptor
                       header.  The  following table describes
                       the  information  in the  array.   Each
                       entry  is a  word.   Dimensions are  in
                       pixels and  the origin is at  the lower
                       left corner of the character box.

                                        Entry      Description

                                         1         Font ID.

                                         2         Segment ID.

                                         3         0 = EBCDIC; 1 = ASCII.

                                        Entry      Description

                                         4         Range of x (P).

                                         5         Range of y (Q).

                                         6         Starting  character  code.
                                                   Range is 0x21 to 0xFE.

                                         7         Last    character    code.
                                                   Range is 0x21 to 0xFE.

                                         8         Font  baseline.  Value  in
                                                   pixels in the y direction.

                                         9         Font  capline.   Value  in
                                                   pixels in the x direction.

                                        10         Default error code point.

                                        11-32      Reserved.

     select            Determines the type of query.

                       A  value of  -1  returns the  following
                       information   in  the   font  parameter
                       buffer:

                       Word 1      Current active font_ID

                       Word 2      Number  of  PCS  descriptor
                                   headers    (segments    for
                                   2-byte text)  loaded at the
                                   time of the query.

                       A value  other than -1 returns  the PCS
                       descriptor header  associated with that
                       number in  the table.  The  first entry
                       is 0, with a range of 0 to n.

Related Information

     In this  book:  "fonts,"  "Geometric Text  Font Format,"
     "gsgtat," and "gsgtxt."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026