summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/font/font_module.h')
-rw-r--r--src/osd/modules/font/font_module.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/osd/modules/font/font_module.h b/src/osd/modules/font/font_module.h
index c9c7b1f40cb..81ffaca74e5 100644
--- a/src/osd/modules/font/font_module.h
+++ b/src/osd/modules/font/font_module.h
@@ -5,12 +5,16 @@
*
*/
-#ifndef FONT_MODULE_H_
-#define FONT_MODULE_H_
+#ifndef MAME_OSD_MODULES_FONT_FONTMODULE_H
+#define MAME_OSD_MODULES_FONT_FONTMODULE_H
#include "osdepend.h"
#include "modules/osdmodule.h"
+#include <string>
+#include <vector>
+
+
//============================================================
// CONSTANTS
//============================================================
@@ -21,8 +25,13 @@ class font_module
{
public:
virtual ~font_module() { }
- virtual osd_font *font_alloc() = 0;
+
+ /** attempt to allocate a font instance */
+ virtual osd_font::ptr font_alloc() = 0;
+
+ /** attempt to list available font families */
+ virtual bool get_font_families(std::string const &font_path, std::vector<std::pair<std::string, std::string> > &result) = 0;
};
-#endif /* FONT_MODULE_H_ */
+#endif // MAME_OSD_MODULES_FONT_FONTMODULE_H