NNS_G2dFontGetMaxCharWidth

構文


#include <nnsys/g2d/g2d_Font.h>

u8 NNS_G2dFontGetMaxCharWidth(
	const NNSG2dFont* pFont
);

引数

pFont [IN] フォント へのポインタ

返り値

フォント中の最大の文字幅を返します。(ピクセル単位)

説明

フォントに含まれる文字幅(=左スペース幅+グリフ幅+右スペース幅)の中で最大のものを取得します。

縦書きフォントではフォント中の最大の文字の高さを取得します。

参照

NNS_G2dFontGetCellWidth

履歴

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