Searched refs:fontBufferSize (Results 1 – 2 of 2) sorted by relevance
| /NW4C-1.2.23/demos/font/PackedFont/sources/ |
| D | main.cpp | 212 const u32 fontBufferSize = nw::font::PackedFont::GetRequireBufferSize( in InitFont() local 214 if (fontBufferSize == 0) in InitFont() 221 void* const fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFont() 225 NW_WARNING(false, "fail to allocate memory for font buffer(%d byte).", fontBufferSize); in InitFont() 232 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 250 pFileReader->GetSize(), readBufferSize, fontBufferSize); in InitFont() 308 const u32 fontBufferSize = nw::font::PackedFont::GetRequireBufferSize( in InitFontStreaming() local 310 if (fontBufferSize == 0) in InitFontStreaming() 317 void* fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFontStreaming() 321 NN_LOG("fail to allocate memory for font buffer(%d byte).", fontBufferSize); in InitFontStreaming() [all …]
|
| /NW4C-1.2.23/demos/font/ArchiveFont/sources/ |
| D | main.cpp | 248 const u32 fontBufferSize = nw::font::ArchiveFont::GetRequireBufferSize( in InitFont() local 250 if (fontBufferSize == 0) in InitFont() 256 void* const fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFont() 266 bSuccess = pFont->Construct(fontBuffer, fontBufferSize, readBuffer, glyphGroups); in InitFont() 283 pFileReader->GetSize(), readBufferSize, fontBufferSize ); in InitFont() 334 const u32 fontBufferSize = nw::font::ArchiveFont::GetRequireBufferSize( in InitFontStreaming() local 336 if (fontBufferSize == 0) in InitFontStreaming() 343 void* fontBuffer = DevMemAlloc(fontBufferSize, nw::font::GlyphDataAlignment); in InitFontStreaming() 347 NW_WARNING(false, "can't alloc %d bytes", fontBufferSize); in InitFontStreaming() 355 pFont->InitStreamingConstruct(&context, fontBuffer, fontBufferSize, glyphGroups); in InitFontStreaming() [all …]
|