NNS_G2dFontGetTextHeight

C Specification


#include <nnsys/g2d/g2d_Font.h>

int NNS_G2dFontGetTextHeight(
	const NNSG2dFont* pFont,
	int vSpace,
	const NNSG2dChar* txt
);

Arguments

pFont [IN] Pointer to font
vSpace [IN] Line interval (in pixels)
txt [IN] Pointer to character string

Return Values

Returns the height that the character string has when drawn ( in pixels).

Description

Calculates the height that character string txt has when drawn.

For information on the other arguments, see NNS_G2dTextCanvasInit.

Use this function when you want to know the size of the character string before creating the TextCanvas. For example, use it when you are dynamically creating the smallest CharCanvas that can display all of txt. When TextCanvas is already created, use NNS_G2dTextCanvasGetTextHeight.

Calculates the character string width for a vertically written font.

See Also

Revision History

2007/03/14 Added support for vertically written/held fonts.
2005/05/25 Initial version.


CONFIDENTIAL