void PEXOCCSetTextFontIndex( PEXOCC context, unsigned int index )
void PEXSetTextFontIndex( Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int index )
None.
Invoke PEXOCCSetTextFontIndex to create an attribute output command which sets the text font index attribute in the renderer's pipeline state according to the value specified by index.
You use the text font index attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), to define the text font index into the text font table. Specify index to indicate the entry in the current text font lookup table that the implementation uses to render text and annotation text primitives. Each entry of the text font table defines a font group.
If you specify an undefined text font table index, then the index defaults to index one. If index one is not defined, then the result is implementation-dependent. If you specify a text font table index less than 1, then the implementation issues a BadPEXOutputCommand error.
If you attempt to use a font which is not available in the selected font group, then the text or annotation text primitive is rendered with the default font group. If a needed font is not available in the default font group, then the portion of the primitive specifying that font is rendered in an implementation-dependent way.
This function is a member of the annotation and text attribute set.
For an overview and for a list of output attribute functions, see Output Attribute Functions.