Lines Matching refs:FontData
427 static OSFontHeader* FontData; variable
449 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
453 FontData = OSAlloc(OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
459 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
463 FontData = OSAlloc(OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
469 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_UTF); in DEMOInitROMFont()
473 FontData = OSAlloc(OS_FONT_SIZE_UTF); in DEMOInitROMFont()
477 if (!FontData) in DEMOInitROMFont()
481 if (!OSInitFont(FontData)) in DEMOInitROMFont()
486 FontSize = (s16) (FontData->cellWidth * 16); in DEMOInitROMFont()
489 return FontData; in DEMOInitROMFont()
534 s16 posTop = (s16) (y - (FontData->ascent * FontSize / FontData->cellWidth)); in DrawFontChar()
535 s16 posBottom = (s16) (y + (FontData->descent * FontSize / FontData->cellWidth)); in DrawFontChar()
538 s16 texRight = (s16) (xChar + FontData->cellWidth); in DrawFontChar()
540 s16 texBottom = (s16) (yChar + FontData->cellHeight); in DrawFontChar()
571 FontData->sheetWidth, // weight in LoadSheet()
572 FontData->sheetHeight, // height in LoadSheet()
573 (GXTexFmt) FontData->sheetFormat, // format in LoadSheet()
589 MTXScale(mtx, 1.0f / FontData->sheetWidth, in LoadSheet()
590 1.0f / FontData->sheetHeight, in LoadSheet()
616 ASSERT(FontData); in DEMORFPuts()
638 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPuts()
655 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPuts()
669 ASSERT(FontData); in DEMORFPutsEx()
694 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
702 if (maxWidth < width + FontSize * cx / FontData->cellWidth + FontSpace) in DEMORFPutsEx()
705 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
710 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPutsEx()
760 ASSERT(FontData); in DEMODumpROMFont()
765 temp = (u8*) FontData + OS_FONT_SIZE_SJIS - OS_FONT_ROM_SIZE_SJIS; in DEMODumpROMFont()
768 temp = (u8*) FontData + OS_FONT_SIZE_ANSI - OS_FONT_ROM_SIZE_ANSI; in DEMODumpROMFont()
771 temp = (u8*) FontData + OS_FONT_SIZE_UTF - OS_FONT_ROM_SIZE_UTF; in DEMODumpROMFont()
775 OSLoadFont(FontData, temp); in DEMODumpROMFont()
795 OSInitFont(FontData); // To re-expand compressed data in DEMODumpROMFont()
815 ASSERT(FontData); in DEMOGetRFTextWidth()
829 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMOGetRFTextWidth()
851 ASSERT(FontData); in DEMOGetRFTextHeight()
862 height *= FontData->leading * FontSize / FontData->cellWidth; in DEMOGetRFTextHeight()