[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

getfontencoding Subroutine

Purpose

Indicates the font encoding.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void getfontencoding (char *enc)

FORTRAN Syntax

SUBROUTINE GETFONTENCODING (enc)
CHARACTER *(*) enc

Description

The getfontencoding subroutine returns an ASCII string that indicates the registry and encoding of the currently bound font.

The returned string is always NULL for user-defined fonts (defined with the defrasterfont subroutine). The returned string may or may not be NULL for fonts loaded with the loadXfont subroutine. Typically, newer fonts indicate their encoding, older fonts do not.

The encoding is determined with the Enhanced X-Windows Logical Font Description (XLFD) mechanism. The actual string returned is a concatenation of the contents of the CharSetRegistry and CharSetEncoding fields of logical font description.

Examples of font set registries and encodings are ISO8859-5 or JISX.1983-0. In the first example, ISO8859 is the registry (in this case, the International Standard ISO 8859, Information Processing - 8-bit Single Byte Coded Graphics Character Sets), and 5 is the encoding (in this case, ISO 8859/5, a Russian/Cyrillic encoding).

More information about font encodings can be found in "National Language Support Overview".

Parameters

enc Indicates a pointer to a memory location. The user passes a pointer to a memory area that point to at least 24 bytes that can be overwritten. Upon return, their memory area contains a ASCII string identifying the registry and encoding of the currently bound font.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Determining the font format with the getfonttype subroutine.

Defining bitmaps for a raster font with the defrasterfont subroutine.

Selecting a raster font with the font subroutine.

Loading an Enhanced X-Windows font into the font table with the loadXfont subroutine.

National Language Support Overview in AIX General Programming Concepts: Writing and Debugging Programs.

AIX Graphics Library Overview in GL3.2 Version 4 for AIX: Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]