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

getdescender Subroutine

Purpose

Returns the baseline extent of the longest character descender.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 getdescender( );

FORTRAN Syntax

INTEGER*4 FUNCTION GETDES

Description

The getdescender subroutine returns the maximum distance (in pixels) between the baseline of a character and the bottom of the bitmap for that character.

Each character in a font is defined using a bitmap that is displayed relative to the current character position. Vertical placement of each character is done using the current character position as the baseline or the line on the page.

The portion of a character that extends below the baseline is called a descender. The lowercase characters g and p typically have descenders. The returned value of this function is the length (in pixels) of the longest descender in the current font.

Note: This subroutine cannot be used to add to a display list.

Return Value

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

Implementation Specifics

This subroutine is part of GL in the AIXwindows environment.

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

Returning the current raster font number with the getfont subroutine.

Returning the maximum character height in the current raster font with the getheight subroutine.

Returning the width of the specified text string with the strwidth subroutine.

AIX Graphics Library Overview, Creating Text Characters, and Querying the System.


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