nn::pl::CTR::MountSharedFont Function

Syntax

nn::Result MountSharedFont(
     const char * archiveName,
     SharedFontType sharedFontType,
     size_t maxFile,
     size_t maxDirectory,
     void * workingMemory,
     size_t workingMemorySize
);

Parameters

Name Description
in archiveName Specifies the archive name. (Example: "fnt1:")
in sharedFontType Specifies the type of the shared font.
in maxFile Specifies the number of files that can be opened simultaneously.
in maxDirectory Specifies the number of directories that can be opened simultaneously.
in workingMemory Specifies the address of the working region.
in workingMemorySize Specifies the size of the working region.

Return Values

Returns the result.
Value Description
nn::pl::ResultSharedFontNotFound The specified shared font was not found.

Description

Mounts the archive of the shared font.

When using a font other than that which can be obtained with the nn::pl::CTR::GetSharedFontType function, the application itself must mount the archive and open the font file.

The font files included within the archive are as follows. We assume an archive name of "font" when the archive is opened.

The arguments related to mounting are the same as for other mounting interfaces.

For SystemUpdater 0.17.x and later versions, the built-in China, Korea, and Taiwan system fonts have been changed in the following ways from earlier versions:

In the Japanese, North American, and European markets, the built-in China, Korea, and Taiwan system fonts can only be updated by SystemUpdater via Internet, so in these regions there is a mix of systems with and without the font updates and there may be differences in how things display depending on the system. Note this when using built-in China, Korea, and Taiwan system fonts in the Japanese, North American, and European markets.

The bcfnt file included with the CTR SDK contains the same content as the built-in system fonts. You can avoid the above-mentioned problem by using this file.

Revision History

2010/11/10
Initial version.
2012/01/16
Added changes and precautions relating to the built-in China, Korea, and Taiwan system fonts in SystemUpdater 0.17x and later versions.

CONFIDENTIAL