From 701df7fe9ea4775b25c9d7263592cb3d442e2793 Mon Sep 17 00:00:00 2001 From: Dankan1890 Date: Thu, 4 Feb 2016 14:44:49 +0100 Subject: Initial import of MEWUI to MAME [Dankan1890] --- src/emu/rendfont.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/emu/rendfont.h') diff --git a/src/emu/rendfont.h b/src/emu/rendfont.h index aced202260d..1f05babd789 100644 --- a/src/emu/rendfont.h +++ b/src/emu/rendfont.h @@ -65,6 +65,9 @@ private: const char * rawdata; // pointer to the raw data for this one render_texture * texture; // pointer to a texture for rendering and sizing bitmap_argb32 bitmap; // pointer to the bitmap containing the raw data + + rgb_t color; + }; // internal format @@ -82,8 +85,11 @@ private: bool load_cached_bdf(const char *filename); bool load_bdf(); bool load_cached(emu_file &file, UINT32 hash); + bool load_cached_cmd(emu_file &file, UINT32 hash); bool save_cached(const char *filename, UINT32 hash); + void render_font_command_glyph(); + // internal state render_manager & m_manager; format m_format; // format of font data @@ -93,7 +99,12 @@ private: glyph *m_glyphs[256]; // array of glyph subtables std::vector m_rawdata; // pointer to the raw data for the font UINT64 m_rawsize; // size of the raw font data - osd_font *m_osdfont; // handle to the OSD font + osd_font *m_osdfont; // handle to the OSD font + + int m_height_cmd; // height of the font, from ascent to descent + int m_yoffs_cmd; // y offset from baseline to descent + glyph *m_glyphs_cmd[256]; // array of glyph subtables + std::vector m_rawdata_cmd; // pointer to the raw data for the font // constants static const int CACHED_CHAR_SIZE = 12; @@ -101,5 +112,6 @@ private: static const int CACHED_BDF_HASH_SIZE = 1024; }; +void convert_command_glyph(std::string &s); #endif /* __RENDFONT_H__ */ -- cgit v1.2.3-70-g09d2