#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 初版