/* liberis -- A set of libraries for controlling the NEC PC-FX Copyright (C) 2011 Alex Marshall "trap15" # This code is licensed to you under the terms of the MIT license; # see file LICENSE or http://www.opensource.org/licenses/mit-license.php */ /*! \file * \brief Access fonts from ROM. */ #ifndef _LIBERIS_ROMFONT_H_ #define _LIBERIS_ROMFONT_H_ #include /*! \brief Type of font to get data for. */ typedef enum { ROMFONT_KANJI_16x16 = 0, /*!< 16x16 kanji font */ ROMFONT_KANJI_12x12 = 1, /*!< 12x12 kanji font */ ROMFONT_ANK_8x16 = 2, /*!< 8x16 alpha/numeric/kana font */ ROMFONT_ANK_6x12 = 3, /*!< 6x12 alpha/numeric/kana font */ ROMFONT_ANK_8x8 = 4, /*!< 8x8 alpha/numeric/kana font */ ROMFONT_ANK_8x12 = 5, /*!< 8x12 alpha/numeric/kana font */ } romfont_type; /*! \brief 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. * \param sjis The ShiftJIS code to get the font data for. (ASCII works too) * \param type The type of font to get the data from. * \return Font data. */ u8* eris_romfont_get(u32 sjis, romfont_type type); #endif