Searched refs:fontBufferSize (Results 1 – 2 of 2) sorted by relevance
| /CTR-SDK-4.2.7-SampleDemos/font/PackedFont/ |
| D | main.cpp | 161 const u32 fontBufferSize = nn::font::PackedFont::GetRequireBufferSize( in InitFont() local 163 if (fontBufferSize == 0) in InitFont() 170 void* const fontBuffer = s_AppHeap.Allocate(fontBufferSize, nn::font::GlyphDataAlignment); in InitFont() 174 … NN_WARNING(false, "Failed to allocate memory for the font buffer (%d bytes).", fontBufferSize); in InitFont() 181 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 199 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 257 const u32 fontBufferSize = nn::font::PackedFont::GetRequireBufferSize( in InitFontStreaming() local 259 if (fontBufferSize == 0) in InitFontStreaming() 266 void* fontBuffer = s_AppHeap.Allocate(fontBufferSize, nn::font::GlyphDataAlignment); in InitFontStreaming() 270 NN_LOG("Failed to allocate memory for the font buffer (%d bytes).", fontBufferSize); in InitFontStreaming() [all …]
|
| /CTR-SDK-4.2.7-SampleDemos/font/ArchiveFont/ |
| D | main.cpp | 218 const u32 fontBufferSize = nn::font::ArchiveFont::GetRequireBufferSize( in InitFont() local 220 if (fontBufferSize == 0) in InitFont() 226 void* const fontBuffer = s_AppHeap.Allocate(fontBufferSize, nn::font::GlyphDataAlignment); in InitFont() 236 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 253 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 304 const u32 fontBufferSize = nn::font::ArchiveFont::GetRequireBufferSize( in InitFontStreaming() local 306 if (fontBufferSize == 0) in InitFontStreaming() 313 void* fontBuffer = s_AppHeap.Allocate(fontBufferSize, nn::font::GlyphDataAlignment); in InitFontStreaming() 317 NN_WARNING(false, "can't alloc %d bytes", fontBufferSize); in InitFontStreaming() 325 pFont->InitStreamingConstruct(&context, fontBuffer, fontBufferSize, glyphGroups); in InitFontStreaming() [all …]
|