GET_TEXT_HEIGHT@

Platform

Win32, x64

Purpose

To get the GDI+ height of a character string that will produce the same width characters as GDI.

Syntax

INTEGER FUNCTION GET_TEXT_HEIGHT@(string)
CHARACTER(LEN=*)::string

Description

When using the GDI, the height and width of characters can be set independently (using SIZE_IN_PIXELS@ etc.). In contrast, when using the GDI+, only the height can be transmitted and a specified width is ignored. The result is that the GDI/GDI+ heights will match but the string widths may not (the design decision within ClearWin+ is that to match the heights is paramount). When it is expedient to use GDI+ for drawing characters and the when it is important to match the string width rather than the character height, ClearWin+ provides this function (GET_TEXT_HEIGHT@) to provide the adjusted height of a given string such that its GDI+ width matches its GDI width.

Notes

Introduced with FTN95 7.00.

See also

Using GDI+, DRAW_CHARACTERS@.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited