GET_TEXT_SIZE@

Platform

Win32, x64

Purpose

To get the dimensions of a graphics character string.

Syntax

SUBROUTINE GET_TEXT_SIZE@( STR, WIDTH, DEPTH )
CHARACTER(*) STR
INTEGER WIDTH,DEPTH

Description

This routine returns the pixel WIDTH and DEPTH of a given character string STR when drawn on the current drawing surface. Trailing spaces will be included so either use a substring notation or terminate the significant characters by CHAR(0).

See also

Using GDI+, SELECT_FONT@, SCALE_FONT@, UNDERLINE_FONT@, ITALIC_FONT@,
BOLD_FONT@, SIZE_IN_PIXELS@, SIZE_IN_POINTS@, ROTATE_FONT@,
GET_FONT_NAME@, CHOOSE_FONT@.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited