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
);

Arguments

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 GetSharedFontType function, the application itself must mount the archive and open the font file.

The font within the archive would be as follows. The description uses an archive that we have named "font".

SHARED_FONT_TYPE_STD:"font:/cbf_std.bcfnt.lz" SHARED_FONT_TYPE_CN:"font:/cbf_zh-Hans-CN.bcfnt.lz" SHARED_FONT_TYPE_KR:"font:/cbf_ko-Hang-KR.bcfnt.lz" SHARED_FONT_TYPE_TW:"font:/cbf_zh-Hant-TW.bcfnt.lz" The arguments related to mounting are the same as for other mounting interfaces.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL