FORTRAN (libfgl.a)
void getfontencoding (char *enc)
SUBROUTINE GETFONTENCODING (enc) CHARACTER *(*) enc
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".
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
/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. |
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.