diff options
author | 2010-10-24 00:16:54 +0000 | |
---|---|---|
committer | 2010-10-24 00:16:54 +0000 | |
commit | 59559fe28278ed77ac11f3471520f210647a191f (patch) | |
tree | c8f870edb75a82a50d36cd8527e3a4a0acad1d72 /src/emu/ui.c | |
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/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index 61031514f1a..9324df20d81 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -240,7 +240,7 @@ int ui_init(running_machine *machine) machine->add_notifier(MACHINE_NOTIFY_EXIT, ui_exit); /* allocate the font and messagebox string */ - ui_font = machine->render().font_alloc("ui.bdf"); + ui_font = machine->render().font_alloc(options_get_string(machine->options(), OPTION_UI_FONT)); /* initialize the other UI bits */ ui_menu_init(machine); |