# NNS_G2dFontInit*

## C Specification

      #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 | [IN] Pointer to font
pNftrFile | [IN] NFTR file load result

## Return Values

None.

## Description

Based on a loaded font resource, creates a font that is usable by the runtime 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

05/25/2005 Initial version.