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

getfonttype Subroutine

Purpose

Indicates whether the current font is a double-byte character set (DBCS) font.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

int getfonttype()

FORTRAN Syntax

INTEGER *4 FUNCTION GETFONT

Description

The getfonttype subroutine indicates whether the currently bound font is a single-byte or double-byte font.

The behavior of the charstr subroutine depends on the font type of the currently loaded font. Use the getfonttype subroutine to determine whether to pass single-byte or double-byte character strings to the charstr subroutine.

Note: Most European fonts, including all ISO8859 code sets, are single-byte fonts. Most Asian font sets, including the JIS (Japanese Kanji) fonts, are double-byte fonts.

Return Values

FT_SBCS Indicates that the current font is a single-byte font.
FT_DBCS Indicates that the current font is a double-byte 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 name with the getfontencoding subroutine.

Defining bitmaps for a raster font with the defrasterfont subroutine.

Selecting a raster font with the font subroutine.

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

Creating Text Characters.


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