diff options
author | Aaron Giles <aaron@aarongiles.com> | 2010-10-24 00:16:54 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2010-10-24 00:16:54 +0000 |
commit | 59559fe28278ed77ac11f3471520f210647a191f (patch) | |
tree | c8f870edb75a82a50d36cd8527e3a4a0acad1d72 /src/osd/osdepend.h | |
parent | 1b872c9b0bb2a2d0f202e8414f668e6331c5bd9c (diff) |
Added support for OSD-generated fonts. The OSD is queried first to see
if it owns a given font (based on the name), and if it does, it is
responsible for generating bitmaps on the fly as characters are requested.
Added new option -uifont to specify the UI font. It can be set to a filename,
in which case a BDF font will be loaded. It can also be set to a font name
(assuming the OSD support is present), in which case the OSD font by that
name is used. The default value is 'default' which can be used by the OSD
to substitute a default font or by the OSD, which will default to ui.bdf
as before. In all cases, it falls back to the built-in font by default if
none of the previous options works.
On Windows, the OSD will default to Tahoma as the font name. Also on
Windows, font names can be specified with [b] to indicate bold or [i] to
indicate italic.
Diffstat (limited to 'src/osd/osdepend.h')
-rw-r--r-- | src/osd/osdepend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osd/osdepend.h b/src/osd/osdepend.h index a344482d4f1..b227844b571 100644 --- a/src/osd/osdepend.h +++ b/src/osd/osdepend.h @@ -44,6 +44,7 @@ #include "emucore.h" #include "osdcore.h" +#include "unicode.h" //************************************************************************** @@ -53,6 +54,7 @@ // forward references class input_type_desc; class device_t; +typedef void *osd_font; // ======================> osd_interface @@ -82,6 +84,11 @@ public: // input overridables virtual void customize_input_type_list(input_type_desc *typelist); + + // font overridables + virtual osd_font font_open(const char *name, int &height); + virtual void font_close(osd_font font); + virtual bitmap_t *font_get_bitmap(osd_font font, unicode_char chnum, INT32 &width, INT32 &xoffs, INT32 &yoffs); private: // internal state |