pinq_text_facs(3g) — Subroutines
Name
pinq_text_facs − Returns text information, including character height, fonts, and text indexes.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pinq_text_facs (
Pint wstype, /∗ (I) Workstation type ∗/
Pint num_elem, /∗ (I) Number of font and precision pairs in
the application list ∗/
Pint start, /∗ (I) Starting position within the Digital
PHIGS list ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Ptext_facs ∗facilities, /∗ (O) List of text facilities ∗/
Pint ∗act_num /∗ (O) Total number of font and precision
pairs in the Digital PHIGS list ∗/
)
Data Structures
typedef struct {
Pint num_font_precs; /∗ number of fonts and
precisions ∗/
Ptext_font_prec ∗font_precs; /∗ list of fonts and precisions ∗/
Pint num_char_hts; /∗ number of character heights ∗/
Pfloat min_char_ht; /∗ minimum height ∗/
Pfloat max_char_ht; /∗ maximum height ∗/
Pint num_char_expans; /∗ number of character expansion
factors ∗/
Pfloat min_char_expan; /∗ minimum expansion factor ∗/
Pfloat max_char_expan; /∗ maximum expansion factor ∗/
Pint num_pred_inds; /∗ number of predefined bundle
indexes ∗/
} Ptext_facs;
typedef struct {
Pint font; /∗ text font ∗/
Ptext_prec prec; /∗ text precision ∗/
} Ptext_font_prec;
typedef enum {
PPREC_STRING, /∗ String precision. Digital PHIGS evaluates
character height and width attributes. ∗/
PPREC_CHAR, /∗ Character precision. Digital PHIGS evaluates
each character for compliance with all
other specified text attributes. ∗/
PPREC_STROKE /∗ Stroke precision. Digital PHIGS looks for
exact compliance with all specified text
attributes. ∗/
} Ptext_prec;
Description
pinq_text_facs queries the workstation description table and returns values for the following:
•List of text font and precision pairs
•Number of available character heights
•Range of character heights in device coordinates
•Number of available character expansion factors in device coordinates
•Range of available character expansion factors in device coordinates
•Number of predefined text indexes
See Also
pinq_pred_text_rep
pinq_pred_text_rep_plus
pset_char_ht
pset_char_space
pset_text_font
pset_text_prec
pset_text_rep
pset_text_rep_plus
ptext
ptext3