Lines Matching refs:FontData
413 static OSFontHeader* FontData; variable
435 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
439 FontData = OSAlloc(OS_FONT_SIZE_SJIS); in DEMOInitROMFont()
445 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
449 FontData = OSAlloc(OS_FONT_SIZE_ANSI); in DEMOInitROMFont()
455 FontData = MEMAllocFromAllocator(&DemoAllocator1, OS_FONT_SIZE_UTF); in DEMOInitROMFont()
459 FontData = OSAlloc(OS_FONT_SIZE_UTF); in DEMOInitROMFont()
463 if (!FontData) in DEMOInitROMFont()
467 if (!OSInitFont(FontData)) in DEMOInitROMFont()
472 FontSize = (s16) (FontData->cellWidth * 16); in DEMOInitROMFont()
475 return FontData; in DEMOInitROMFont()
520 s16 posTop = (s16) (y - (FontData->ascent * FontSize / FontData->cellWidth)); in DrawFontChar()
521 s16 posBottom = (s16) (y + (FontData->descent * FontSize / FontData->cellWidth)); in DrawFontChar()
524 s16 texRight = (s16) (xChar + FontData->cellWidth); in DrawFontChar()
526 s16 texBottom = (s16) (yChar + FontData->cellHeight); in DrawFontChar()
557 FontData->sheetWidth, // weight in LoadSheet()
558 FontData->sheetHeight, // height in LoadSheet()
559 (GXTexFmt) FontData->sheetFormat, // format in LoadSheet()
575 MTXScale(mtx, 1.0f / FontData->sheetWidth, in LoadSheet()
576 1.0f / FontData->sheetHeight, in LoadSheet()
602 ASSERT(FontData); in DEMORFPuts()
624 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPuts()
641 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPuts()
655 ASSERT(FontData); in DEMORFPutsEx()
680 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
688 if (maxWidth < width + FontSize * cx / FontData->cellWidth + FontSpace) in DEMORFPutsEx()
691 y += FontData->leading * FontSize / FontData->cellWidth; in DEMORFPutsEx()
696 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMORFPutsEx()
743 ASSERT(FontData); in DEMODumpROMFont()
748 temp = (u8*) FontData + OS_FONT_SIZE_SJIS - OS_FONT_ROM_SIZE_SJIS; in DEMODumpROMFont()
751 temp = (u8*) FontData + OS_FONT_SIZE_ANSI - OS_FONT_ROM_SIZE_ANSI; in DEMODumpROMFont()
754 temp = (u8*) FontData + OS_FONT_SIZE_UTF - OS_FONT_ROM_SIZE_UTF; in DEMODumpROMFont()
758 OSLoadFont(FontData, temp); in DEMODumpROMFont()
778 OSInitFont(FontData); // To re-expand compressed data in DEMODumpROMFont()
798 ASSERT(FontData); in DEMOGetRFTextWidth()
812 width += FontSize * cx / FontData->cellWidth + FontSpace; in DEMOGetRFTextWidth()
834 ASSERT(FontData); in DEMOGetRFTextHeight()
845 height *= FontData->leading * FontSize / FontData->cellWidth; in DEMOGetRFTextHeight()