summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/rendfont.h
diff options
context:
space:
mode:
author Dankan1890 <mewuidev2@gmail.com>2016-02-04 14:44:49 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-02-04 15:14:24 +0100
commit701df7fe9ea4775b25c9d7263592cb3d442e2793 (patch)
tree6ce520fd10619b5f4146d9bff127d36f08a673ba /src/emu/rendfont.h
parent196e742a77f7719f61318c420e79ae08add25124 (diff)
Initial import of MEWUI to MAME [Dankan1890]
Diffstat (limited to 'src/emu/rendfont.h')
-rw-r--r--src/emu/rendfont.h14
1 files changed, 13 insertions, 1 deletions
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<char> 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<char> 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__ */