mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
Make a proper BDF out of uismall font - no need to try and load an orphaned BDC
This commit is contained in:
parent
5314fc0b00
commit
d5aa425387
@ -153,25 +153,6 @@ render_font::render_font(render_manager &manager, const char *filename)
|
||||
if (filename != nullptr && core_stricmp(filename, "default") == 0)
|
||||
filename = "ui.bdf";
|
||||
|
||||
// attempt to open the cached version of the font
|
||||
if (filename != nullptr)
|
||||
{
|
||||
emu_file cachefile(manager.machine().options().font_path(), OPEN_FLAG_READ);
|
||||
osd_file::error const filerr = cachefile.open(filename);
|
||||
if (filerr == osd_file::error::NONE)
|
||||
{
|
||||
// if we have a cached version, load it
|
||||
bool const result = load_cached(cachefile, 0);
|
||||
|
||||
// if that worked, we're done
|
||||
if (result)
|
||||
{
|
||||
render_font_command_glyph();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// attempt to load the cached version of the font first
|
||||
if (filename != nullptr && load_cached_bdf(filename))
|
||||
{
|
||||
|
BIN
uismall.bdc
BIN
uismall.bdc
Binary file not shown.
2650
uismall.bdf
Normal file
2650
uismall.bdf
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user