Lines Matching refs:FontData
433 static OSFontHeader* FontData; variable
455 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
459 FontData = OSAlloc(OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
465 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
469 FontData = OSAlloc(OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
475 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_UTF); in DEMOInitROMFont()
479 FontData = OSAlloc(OS_FONT_SIZE_UTF); in DEMOInitROMFont()
483 if (!FontData) in DEMOInitROMFont()
487 if (!OSInitFont(FontData)) in DEMOInitROMFont()
492 FontSize = (s16) (FontData->cellWidth * 16); in DEMOInitROMFont()
495 return FontData; in DEMOInitROMFont()
540 s16 posTop = (s16) (y - (FontData->ascent * FontSize / FontData->cellWidth)); in DrawFontChar()
541 s16 posBottom = (s16) (y + (FontData->descent * FontSize / FontData->cellWidth)); in DrawFontChar()
544 s16 texRight = (s16) (xChar + FontData->cellWidth); in DrawFontChar()
546 s16 texBottom = (s16) (yChar + FontData->cellHeight); in DrawFontChar()
577 FontData->sheetWidth, // weight in LoadSheet()
578 FontData->sheetHeight, // height in LoadSheet()
579 (GXTexFmt) FontData->sheetFormat, // format in LoadSheet()
595 MTXScale(mtx, 1.0f / FontData->sheetWidth, in LoadSheet()
596 1.0f / FontData->sheetHeight, in LoadSheet()
622 ASSERT(FontData); in DEMORFPuts()
644 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPuts()
661 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPuts()
675 ASSERT(FontData); in DEMORFPutsEx()
700 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
708 if (maxWidth < width + FontSize * cx / FontData->cellWidth + FontSpace) in DEMORFPutsEx()
711 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
716 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPutsEx()
766 ASSERT(FontData); in DEMODumpROMFont()
771 temp = (u8*) FontData + OS_FONT_SIZE_SJIS - OS_FONT_ROM_SIZE_SJIS; in DEMODumpROMFont()
774 temp = (u8*) FontData + OS_FONT_SIZE_ANSI - OS_FONT_ROM_SIZE_ANSI; in DEMODumpROMFont()
777 temp = (u8*) FontData + OS_FONT_SIZE_UTF - OS_FONT_ROM_SIZE_UTF; in DEMODumpROMFont()
781 OSLoadFont(FontData, temp); in DEMODumpROMFont()
801 OSInitFont(FontData); // To re-expand compressed data in DEMODumpROMFont()
821 ASSERT(FontData); in DEMOGetRFTextWidth()
835 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMOGetRFTextWidth()
857 ASSERT(FontData); in DEMOGetRFTextHeight()
868 height *= FontData->leading * FontSize / FontData->cellWidth; in DEMOGetRFTextHeight()