diff options
Diffstat (limited to 'src/osd/modules/font/font_none.c')
-rw-r--r-- | src/osd/modules/font/font_none.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/osd/modules/font/font_none.c b/src/osd/modules/font/font_none.c new file mode 100644 index 00000000000..f48bf3876a2 --- /dev/null +++ b/src/osd/modules/font/font_none.c @@ -0,0 +1,58 @@ +/* + * font_sdl.c + * + */ + +#include "osdepend.h" + +#include "astring.h" +#include "corealloc.h" +#include "fileio.h" + +//------------------------------------------------- +// font_open - attempt to "open" a handle to the +// font with the given name +//------------------------------------------------- + +class osd_font_none : public osd_font +{ +public: + virtual ~osd_font_none() {}; + + virtual bool open(const char *font_path, const char *name, int &height); + virtual void close(); + virtual bool get_bitmap(unicode_char chnum, bitmap_argb32 &bitmap, INT32 &width, INT32 &xoffs, INT32 &yoffs); +private: +}; + +osd_font *osd_font_alloc() +{ + return global_alloc(osd_font_none); +} + +bool osd_font_none::open(const char *font_path, const char *_name, int &height) +{ + return false; +} + +//------------------------------------------------- +// font_close - release resources associated with +// a given OSD font +//------------------------------------------------- + +void osd_font_none::close() +{ +} + +//------------------------------------------------- +// font_get_bitmap - allocate and populate a +// BITMAP_FORMAT_ARGB32 bitmap containing the +// pixel values rgb_t(0xff,0xff,0xff,0xff) +// or rgb_t(0x00,0xff,0xff,0xff) for each +// pixel of a black & white font +//------------------------------------------------- + +bool osd_font_none::get_bitmap(unicode_char chnum, bitmap_argb32 &bitmap, INT32 &width, INT32 &xoffs, INT32 &yoffs) +{ + return false; +} |