Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Here's how to improve MAME's interface font  (Read 2100 times)

0 Members and 1 Guest are viewing this topic.

shock_

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 354
  • Last login:January 30, 2020, 06:23:29 pm
  • In Brisbane, it's GMT+10 all the time.
Here's how to improve MAME's interface font
« on: November 17, 2007, 08:56:18 am »
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.

Ingredients

For 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 600

Every 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.

Franco

  • Guest
  • Trade Count: (0)
Re: Here's how to improve MAME's interface font
« Reply #1 on: November 17, 2007, 10:26:56 am »
Excellent! Looks much cleaner!  8)  :applaud:

Definitely going to be giving it a go this afternoon.  :)

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Here's how to improve MAME's interface font
« Reply #2 on: November 17, 2007, 04:46:40 pm »
Thanks for reminding me about this feature. :)

IIRC, for a couple versions the font looked closer to the clean looking font, but too many people wanted the old school font back.  So the old "8-bit era" font came back. ;)

Oh yah, the high res fonts are for when you run mame at high res screens (like LCDs), and not at original arcade resolutions, it's not for everyone.


Anyway, there's more example fonts over at Mr. Do's site.
Robin
Knowledge is Power

shock_

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 354
  • Last login:January 30, 2020, 06:23:29 pm
  • In Brisbane, it's GMT+10 all the time.
Re: Here's how to improve MAME's interface font
« Reply #3 on: November 17, 2007, 10:30:09 pm »
ahh wow, how did I miss Mr Do!'s fine page before?  Makes my post a bit redundant :)

Cheers on the note about lower resolution - I hadn't considered that, as mine is high.

One of these days I'll work out how to mod the source to change the blue colour too.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: Here's how to improve MAME's interface font
« Reply #4 on: November 18, 2007, 12:20:08 am »
Excellent!  Thanks for making this thread. :cheers: