liberis
Enumerations | Functions
romfont.h File Reference

Access fonts from ROM. More...

#include <eris/types.h>

Go to the source code of this file.

Enumerations

enum  romfont_type {
  ROMFONT_KANJI_16x16 = 0, ROMFONT_KANJI_12x12 = 1, ROMFONT_ANK_8x16 = 2, ROMFONT_ANK_6x12 = 3,
  ROMFONT_ANK_8x8 = 4, ROMFONT_ANK_8x12 = 5
}
 Type of font to get data for. More...

Functions

u8eris_romfont_get (u32 sjis, romfont_type type)
 Get font data.

Detailed Description

Access fonts from ROM.


Enumeration Type Documentation

Type of font to get data for.

Enumerator:
ROMFONT_KANJI_16x16 

16x16 kanji font

ROMFONT_KANJI_12x12 

12x12 kanji font

ROMFONT_ANK_8x16 

8x16 alpha/numeric/kana font

ROMFONT_ANK_6x12 

6x12 alpha/numeric/kana font

ROMFONT_ANK_8x8 

8x8 alpha/numeric/kana font

ROMFONT_ANK_8x12 

8x12 alpha/numeric/kana font


Function Documentation

u8* eris_romfont_get ( u32  sjis,
romfont_type  type 
)

Get font data.

Gets font data for the specified symbol. The data is returned in a series of bytes, and is stored in a simple 1bpp format.

Parameters:
sjisThe ShiftJIS code to get the font data for. (ASCII works too)
typeThe type of font to get the data from.
Returns:
Font data.
 All Files Functions Typedefs Enumerations Enumerator Defines