# NNS_G2dFontInit*

## Syntax

      #include <nnsys/g2d/g2d_Font.h>

      void NNS_G2dFontInitUTF8(
      	NNSG2dFont* pFont,
      	void* pNftrFile
      );

      void NNS_G2dFontInitUTF16(
      	NNSG2dFont* pFont,
      	void* pNftrFile
      );

      void NNS_G2dFontInitShiftJIS(
      	NNSG2dFont* pFont,
      	void* pNftrFile
      );

      void NNS_G2dFontInitCP1252(
      	NNSG2dFont* pFont,
      	void* pNftrFile
      );

## Arguments

`pFont` | [OUT] Pointer to font.
`pNftrFile` | [IN] NFTR file load result.

## Return Values

None.

## Description

Based on the font resource load result, creates a font that is usable by the run-time library.

When you can identify the encoding of the font, using these functions instead of `NNS_G2dFontInitAuto` can reduce the amount of code.

Because the function internally alters the contents of `pNftrFile`, do not execute this function more than once on the same data. After creating the font, the contents of `pNftrFile` are referenced from `pFont`. While using `pFont`, do not discard `pNftrFile`.

## See Also

## Revision History

2005/09/29 Revised the argument IN/OUT display.
2005/05/25 Initial version.

CONFIDENTIAL