I worked this out myself a while ago and thought nothing of it, but maybe others don't know where to start.
This is for MAME post version 107 or whatever ...
Turning this: | |  |
Into this: | |  |
You need to create a ui.bdf file and leave it sitting in your MAME directory. I'll assume you're running Windows and want to convert a normal TrueType font into BDF.
IngredientsFor this example I used the ubiquitous slicker.ttf which is bundled with Gamelauncher front end. Find something free and nice at
www.dafont.com if you like, or copy/paste from your
c:\windows\fonts directory.
Method- Extract the converter software to something like c:\emulation\tools\otf2bdf3
- Put a copy of the font file (.otf or .ttf) in the same directory
- Open a command prompt (Start » Run » type "CMD" with no quotes and hit enter.)
- type the following, but replace the obvious bits with paths to your own software as appropriate.
- Start MAME and see how good or bad it looks, then exit.
- Back in your command prompt window, hit the cursor up key, and go back and experiment with the numbers after -p (that's the font size you're starting with) and the -r (that's the DPI, or clarity, you want) until it looks clean, and is appropriately sized for your screen.
My settings for the screenshot above (slicker.ttf):
c:\emulation\tools\otf2bdf3\otf2bdf -o c:\emulation\mame0120b\ui.bdf slicker.ttf -p 8 -r 600Every font will be different, read the doco on that coverter program for more details. I found that using a nice high DPI (600) was the key to sharp text.
Hope this is helpful to someone, perhaps wanting to match MAME better with their front end layout. Couldn't find a good spot in the Wiki for this, the MAME pages are a mess.