# NNS_G2dFontInitAuto

## Syntax

      #include <nnsys/g2d/g2d_Font.h>

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

## Arguments

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

## Return Values

None.

## Description

Based on a loaded font resource, builds a font that is usable by the runtime library.

This function automatically determines the proper character encoding from the data in the font resource. The disadvantage of this function is that it has more code than the build functions specific to each character encoding, such as `NNS_G2dFontInitUTF8`.

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