summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_module.h
blob: 81ffaca74e5a83557dc7bf567d882dc694b25b3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// license:BSD-3-Clause
// copyright-holders:Couriersud
/*
 * 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
//============================================================

#define OSD_FONT_PROVIDER   "uifontprovider"

class font_module
{
public:
	virtual ~font_module() { }

	/** 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 // MAME_OSD_MODULES_FONT_FONTMODULE_H