NNS_G2dTextCanvasGetTextHeight

構文


#include <nnsys/g2d/g2d_TextCanvas.h>

int NNS_G2dTextCanvasGetTextHeight(
	const NNSG2dTextCanvas* pTxn,
	const NNSG2dChar* txt
);

引数

pTxn [IN] TextCanvas へのポインタ
txt [IN] 文字列へのポインタ

返り値

文字列を描画した時の高さを返します。(ピクセル単位)

説明

文字列 txt を描画した時の高さを計算します。

縦書きフォントでは文字列の幅を計算します。

参照

NNS_G2dFontGetTextHeight, NNS_G2dTextCanvasGetStringWidth, NNS_G2dTextCanvasGetTextWidth, NNS_G2dTextCanvasGetTextRect

履歴

2007/03/14 縦書き/縦持ちフォントに対応。
2005/05/25 初版